diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2017-08-17 16:58:10 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2017-08-17 16:58:10 +0300 |
commit | 88027bf1a9144720c6611024762c1b78351e0644 (patch) | |
tree | 26eeb20119fcd0d9a2c71c21bf4ef3a963cc7d5b /programs | |
parent | 6e70a37bb405ffa1f4ef37cea6d0940a056e5f57 (diff) |
Fix incorrect printing of test failure. The former code was a logic error :(
Diffstat (limited to 'programs')
-rw-r--r-- | programs/fs-probe/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/programs/fs-probe/main.cpp b/programs/fs-probe/main.cpp index 173e96f8..32d896b4 100644 --- a/programs/fs-probe/main.cpp +++ b/programs/fs-probe/main.cpp @@ -90,11 +90,11 @@ int main(int argc, char *argv[]) file_handle::io_request<file_handle::const_buffers_type> reqs(_reqs, 0); RETCHECK(testfile.write(reqs)); }; - if (std::regex_match("latency:read:qd16", torun) || std::regex_match("latency:write:qd16", torun) || std::regex_match("latency:readwrite:qd4", torun)) + if(std::regex_match("latency:read:qd16", torun) || std::regex_match("latency:write:qd16", torun) || std::regex_match("latency:readwrite:qd4", torun)) { std::cout << "Writing 17Gb of temporary test files, this will take a while ..." << std::endl; make_testfile("test"); - for (size_t n = 0; n < 16; n++) + for(size_t n = 0; n < 16; n++) make_testfile(std::to_string(n)); } else @@ -153,7 +153,7 @@ int main(int argc, char *argv[]) test.invoke([](auto &i) { std::cout << " " << i.name << " = " << i.value << std::endl; }); } else - std::cerr << " ERROR running test '" << test.name << "': " << result.error().message() << std::endl; + std::cerr << " ERROR running test '" << test.name << "': " << print(result) << std::endl; } } // Write out results for this combination of flags |