[Boost::Test] short form of catch_system_errors not working

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Boost::Test] short form of catch_system_errors not working

Boost - Users mailing list
Occasionally I need  a core dump if testing goes wrong.
Boost test have the following option
------------
Parameter: catch_system_errors
 Allows to switch between catching and ignoring system errors (signals).
 Command line formats:
   --[no_]catch_system_errors[=<boolean value>]
   -s[ <boolean value>]
-------------------
I never managed to get short options to work and has to search for a long option
exact name.

Neither  '-s no',  '-s false' ,  -sno  with or without quotes are not accepted.

examples
-----
$ test_app -s no

Boost.Test WARNING: token "no" does not correspond to the Boost.Test argument
                    and should be placed after all Boost.Test arguments and the -- separator.
                    For example: test_app --random -- no
------
$ test_app "-s no"

Invalid separator for the parameter catch_system_errors in the argument -s no

-----

Is it a known bug?

Best regards, Konstantin



_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|

Re: [Boost::Test] short form of catch_system_errors not working

Boost - Users mailing list
Le 25/03/2018 à 21:24, Konstantin Kivi via Boost-users a écrit :

> Occasionally I need  a core dump if testing goes wrong.
> Boost test have the following option
> ------------
> Parameter: catch_system_errors
>   Allows to switch between catching and ignoring system errors (signals).
>   Command line formats:
>     --[no_]catch_system_errors[=<boolean value>]
>     -s[ <boolean value>]
> -------------------
> I never managed to get short options to work and has to search for a
> long option
> exact name.
>
> Neither  '-s no',  '-s false' ,  -sno  with or without quotes are not
> accepted.
>
> examples
> -----
> $ test_app -s no
>
> Boost.Test WARNING: token "no" does not correspond to the Boost.Test
> argument
>                      and should be placed after all Boost.Test arguments
> and the -- separator.
>                      For example: test_app --random -- no
> ------
> $ test_app "-s no"
>
> Invalid separator for the parameter catch_system_errors in the argument
> -s no
>
> -----
>
> Is it a known bug?
>
> Best regards, Konstantin
>

Please create a ticket on trac and I'll look at this.

Thanks!
Raffi
_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users