From f96a91a1088efb83f6d52cce23eb50ee18106b39 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 15 Nov 2021 13:09:24 +0000 Subject: [PATCH] Show how to hardcode a single test in the demos project --- util/test/demos/main.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/util/test/demos/main.cpp b/util/test/demos/main.cpp index f1a134961..0f6973c54 100644 --- a/util/test/demos/main.cpp +++ b/util/test/demos/main.cpp @@ -410,7 +410,16 @@ Usage: %s Test_Name [test_options] } std::string testchoice; - if(tests.size() == 1) + +#if 0 + testchoice = "Hardcoded test name"; +#endif + + if(!testchoice.empty()) + { + // hardcoded test, ignore everything else + } + else if(tests.size() == 1) { // if there's only one test we've probably hardcoded this for a repro. Launch it testchoice = tests[0].Name;