incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Vitek (JIRA)" <j...@apache.org>
Subject [jira] Updated: (STDCXX-510) locale tests assert and abort when passed --help command line argument
Date Mon, 06 Aug 2007 22:19:59 GMT

     [ https://issues.apache.org/jira/browse/STDCXX-510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Travis Vitek updated STDCXX-510:
--------------------------------

    Description: 
Running many of the locale tests with the '--help' command line argument results in an assertion
error and then immediate program termination. This makes it difficult to tell what command
line options are available. A test that shows this problem is 22.locale.time.put.mt.cpp.

This is because the rw_opt_setlocales function in locales.cpp doesn't handle the case where
the first argument is NULL. This is the case when the --help command line argument exists.
Most of the other rw_opt_... methods have a test like this near the top of the file.

  if (1 == argc && argv && 0 == argv [0]) {
  }

If the test passes, argv[0] will be set to the help string that should be used.


  was:
Running any one of the locale tests with the '--help' command line argument results in an
assertion error and then immediate program termination. This makes it difficult to tell what
command line options are available.

This is because the rw_opt_setlocales function in locales.cpp doesn't handle the case where
the first argument is NULL. This is the case when the --help command line argument exists.
Most of the other rw_opt_... methods have a test like this near the top of the file.

  if (1 == argc && argv && 0 == argv [0]) {
  }

If the test passes, argv[0] will be set to the help string that should be used.



> locale tests assert and abort when passed --help command line argument
> ----------------------------------------------------------------------
>
>                 Key: STDCXX-510
>                 URL: https://issues.apache.org/jira/browse/STDCXX-510
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 4.1.4
>            Reporter: Travis Vitek
>            Priority: Minor
>             Fix For: 4.1.4
>
>
> Running many of the locale tests with the '--help' command line argument results in an
assertion error and then immediate program termination. This makes it difficult to tell what
command line options are available. A test that shows this problem is 22.locale.time.put.mt.cpp.
> This is because the rw_opt_setlocales function in locales.cpp doesn't handle the case
where the first argument is NULL. This is the case when the --help command line argument exists.
Most of the other rw_opt_... methods have a test like this near the top of the file.
>   if (1 == argc && argv && 0 == argv [0]) {
>   }
> If the test passes, argv[0] will be set to the help string that should be used.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message