$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [test] unit test command-line handling
From: Olaf Peter (ope-devel_at_[hidden])
Date: 2018-09-14 11:35:02
>> ...and what is the appropriate way to signal an error, such as a missing
>> or unsupported command-line argument ? (All the examples in the docs I
>> could find return '0', so another related question is: what is the
>> meaning of the return value ?)
>>
>
> There is this exception you may throw:
>
> https://www.boost.org/doc/libs/1_68_0/libs/test/doc/html/boost/unit_test/framework/setup_error.html
>
>
> Again, this is not so well documented here:
>
> https://www.boost.org/doc/libs/1_68_0/libs/test/doc/html/boost_test/adv_scenarios/obsolete_init_func.html
I assume throwing setup_error works only with the obsolete init_func?
How would it be with the 'new' way described at the caution note on
bottom of the last URL.
Thanks,
Olaf