Show how to hardcode a single test in the demos project

This commit is contained in:
baldurk
2021-11-15 13:09:24 +00:00
parent 4d2afdeea7
commit f96a91a108
+10 -1
View File
@@ -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;