diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-07-27 16:01:55 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-07-27 17:47:59 -0700 |
commit | 6e1eeeebfb453fa7c871869c19375ce60fbd7413 (patch) | |
tree | 539c4a3fdf1756ae79770d5c4aaf6366f1d1525e /002test.cc | |
parent | 8846a7f85cc04b77b2fe8a67b6d317723437b00c (diff) | |
download | mu-6e1eeeebfb453fa7c871869c19375ce60fbd7413.tar.gz |
5485 - promote SubX to top-level
Diffstat (limited to '002test.cc')
-rw-r--r-- | 002test.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/002test.cc b/002test.cc index 817b0d47..f25e331f 100644 --- a/002test.cc +++ b/002test.cc @@ -70,6 +70,13 @@ if (Run_tests) { return 0; } +:(after "End Main") +//: Raise other unrecognized sub-commands as errors. +//: We couldn't do this until now because we want `./subx test` to always +//: succeed, no matter how many layers are included in the build. +cerr << "nothing to do\n"; +return 1; + :(code) void run_test(size_t i) { if (i >= sizeof(Tests)/sizeof(Tests[0])) { |