From 1cd0f0b5e2acb6c9c003f87d18ce44422b72493f Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 20 Nov 2019 13:12:24 +0000 Subject: [PATCH] Add helpful check for making repro cases --- util/test/demos/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/util/test/demos/main.cpp b/util/test/demos/main.cpp index 3340c347d..6855c6baf 100644 --- a/util/test/demos/main.cpp +++ b/util/test/demos/main.cpp @@ -330,7 +330,12 @@ Usage: %s Test_Name [test_options] std::string testchoice; - if(argc >= 2) + if(tests.size() == 1) + { + // if there's only one test we've probably hardcoded this for a repro. Launch it + testchoice = tests[0].Name; + } + else if(argc >= 2) { testchoice = argv[1]; }