From 17d3003df83fe65e75aef78918eb3da22fe6c4fa Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 6 Jun 2018 10:09:34 -0700 Subject: 4254 --- 002test.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '002test.cc') diff --git a/002test.cc b/002test.cc index 9b39b311..6a263358 100644 --- a/002test.cc +++ b/002test.cc @@ -15,9 +15,6 @@ typedef void (*test_fn)(void); const test_fn Tests[] = { #include "test_list" // auto-generated; see 'build*' scripts }; -const string Test_names[] = { - #include "test_name_list" -}; :(before "End Globals") bool Run_tests = false; @@ -86,6 +83,11 @@ void run_test(size_t i) { } //: Convenience: run a single test +:(before "Globals") +// Names for each element of the 'Tests' global, respectively. +const string Test_names[] = { + #include "test_name_list" // auto-generated; see 'build*' scripts +}; :(after "Test Runs") string maybe_single_test_to_run = argv[argc-1]; if (!starts_with(maybe_single_test_to_run, "test_")) -- cgit 1.4.1-2-gfad0