Index: test/std/input.output/filesystems/fs.op.funcs/fs.op.relative/relative.pass.cpp =================================================================== --- test/std/input.output/filesystems/fs.op.funcs/fs.op.relative/relative.pass.cpp +++ test/std/input.output/filesystems/fs.op.funcs/fs.op.relative/relative.pass.cpp @@ -16,9 +16,8 @@ // path proximate(const path& p, const path& base, error_code& ec); #include "filesystem_include.hpp" +#include #include -#include -#include #include #include "test_macros.h" @@ -31,9 +30,6 @@ TEST_SUITE(filesystem_proximate_path_test_suite) TEST_CASE(test_signature) { - -} -int main() { // clang-format off struct { std::string input; @@ -58,21 +54,12 @@ }; // clang-format on int ID = 0; - bool Failed = false; for (auto& TC : TestCases) { ++ID; fs::path p(TC.input); const fs::path output = fs::weakly_canonical(p); - if (output != TC.expect) { - Failed = true; - std::cerr << "TEST CASE #" << ID << " FAILED: \n"; - std::cerr << " Input: '" << TC.input << "'\n"; - std::cerr << " Expected: '" << TC.expect << "'\n"; - std::cerr << " Output: '" << output.native() << "'"; - std::cerr << std::endl; - } + TEST_CHECK(output == TC.expect); } - return Failed; } TEST_SUITE_END()