Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-910

allow locale tests to succeed without TOPDIR defined

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.1.2, 4.1.3, 4.2.0, 4.2.1
    • 4.2.2
    • Test Driver
    • None
    • Usability

    Description

      A number of tests fail with an ERROR when the TOPDIR environment variable is not defined, such as when running them interactively from the command line (as opposed to via the make run target). It would be nice if they didn't fail...

      $ ./22.locale.time.put -q
      # ERROR (S8) (5 lines):
      # TEXT: the environment variable TOPDIR is undefined
      # CLAUSE: lib.locale.time.put
      # FILE: locale.cpp
      # LINE: 221
      
      # ERROR (S8) (4 lines):
      # TEXT: failed to generate LC_TIME locale data
      # CLAUSE: lib.locale.time.put
      # LINE: 1881
      
      # ERROR (S8) (5 lines):
      # TEXT: the environment variable TOPDIR is undefined
      # CLAUSE: lib.locale.time.put
      # FILE: locale.cpp
      # LINE: 221
      
      # ERROR (S8) (4 lines):
      # TEXT: failed to generate LC_TIME locale data
      # CLAUSE: lib.locale.time.put
      # LINE: 1881
      
      # +-----------------------+----------+----------+----------+
      # | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
      # +-----------------------+----------+----------+----------+
      # | (S1) INFO             |      107 |      107 |       0% |
      # | (S2) NOTE             |        2 |        2 |       0% |
      # | (S7) ASSERTION        |        0 |     1800 |     100% |
      # | (S8) ERROR            |        4 |        5 |      20% |
      # +-----------------------+----------+----------+----------+
      /amd/devco/sebor/stdcxx-4.2.x/tests/src/driver.cpp:1528: rw_note(): warning: test finished, cannot call
      

      Attachments

        Activity

          People

            sebor Martin Sebor
            sebor Martin Sebor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h
                2h