| 246 | |
| 247 | |
| 248 | int main(int argc, const char* argv[]) { |
| 249 | if (argc < 2) { |
| 250 | // On Windows the debugger could be active. In that case tests hang and the CI run fails. |
| 251 | #ifndef BOOST_WINDOWS |
| 252 | copy_and_run(argv[0], '0', true); |
| 253 | |
| 254 | // We are copying files to make sure that stacktrace printing works independently from executable name |
| 255 | copy_and_run(argv[0], '1', true); |
| 256 | copy_and_run(argv[0], '2', false); |
| 257 | #endif |
| 258 | |
| 259 | return test_inplace(); |
| 260 | } |
| 261 | |
| 262 | switch (argv[1][0]) { |
| 263 | case '0': return run_0(argv); |
| 264 | case '1': return run_1(argv); |
| 265 | } |
| 266 | |
| 267 | return 404; |
| 268 | } |
| 269 | |
| 270 |
nothing calls this directly
no test coverage detected