diff options
author | dan sinclair <dj2@everburning.com> | 2019-02-07 18:42:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-07 18:42:42 -0500 |
commit | 5da2ba3ae1068550aacb58d8e6dc59d2798587c0 (patch) | |
tree | 6df75ae629b79e3eb69d17f8ceb03ba69eed2427 /samples | |
parent | c6332abc521997a6bdd8ee642659093d224048c3 (diff) | |
download | amber-5da2ba3ae1068550aacb58d8e6dc59d2798587c0.tar.gz |
Sample app shutdown always (#274)
Currently the shutdown logic is only being run if the -s option is
passed. This is a mistake and it should be run all the time.
Diffstat (limited to 'samples')
-rw-r--r-- | samples/amber.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/amber.cc b/samples/amber.cc index 1c5c32a..6b5ceac 100644 --- a/samples/amber.cc +++ b/samples/amber.cc @@ -356,9 +356,9 @@ int main(int argc, const char** argv) { std::cout << "\nSummary: " << (options.input_filenames.size() - failures.size()) << " pass, " << failures.size() << " fail" << std::endl; - - config_helper.Shutdown(); } + config_helper.Shutdown(); + return !failures.empty(); } |