You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ ./a.out --help
./a.out [<test name|pattern|tags> ... ] options
with options:
-? -h --help display usage information
-l --list-tests list all/matching test cases
-t, --list-tags list all/matching tags
-s, --success include successful tests in output
-o, --out <filename> output filename
-r, --reporter <name> reporter to use (defaults to console)
-n, --name <name> suite name
-a, --abort abort at first failure
-x, --abortx <no. failures> abort after x failures
-d, --durations show test durations
-D, --min-duration <seconds> show test durations for [...]
-f, --input-file <filename> load test names to run from a file
--list-test-names-only list all/matching test cases names only
--list-reporters list all reporters
--order <decl|lex|rand>testcase order (defaults to decl)
--rng-seed <'time'|number>set a specific seed for random numbers
--use-colour <yes|no> should output be colourised
--libidentify report name and version according to libidentify standard
--wait-for-keypress <never|start|exit|both>waits for a keypress before exiting
Actual Behavior
❯ ./a.out --help
Suite 'global': all tests passed (5 asserts in 4 tests)
Execute it with command line parameters: ./a.out --help
Works with g++-12 test.cpp -std=c++20
I added some logs into the constructor attribute and the argument parsing function and in clang the attribute is running after the arguments being parsed (hence boost::...::largc is set to 0 when the arguments are parsed)
(Possibly a compiler bug? Not sure if this is defined the same way for both compilers)
Specifications
Version: whatever got returned from wget https://raw.githubusercontent.com/boost-ext/ut/master/include/boost/ut.hpp today (last commit 6a3d4c1)
Platform: Linux nix-l-08257 6.2.0-27-generic #28-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 12 22:39:51 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Expected Behavior
Actual Behavior
Steps to Reproduce the Problem
Works with
g++-12 test.cpp -std=c++20
I added some logs into the constructor attribute and the argument parsing function and in clang the attribute is running after the arguments being parsed (hence boost::...::largc is set to 0 when the arguments are parsed)
(Possibly a compiler bug? Not sure if this is defined the same way for both compilers)
Specifications
wget https://raw.githubusercontent.com/boost-ext/ut/master/include/boost/ut.hpp
today (last commit 6a3d4c1)Linux nix-l-08257 6.2.0-27-generic #28-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 12 22:39:51 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Compiler versions
The text was updated successfully, but these errors were encountered: