diff --git a/test/test_parser.cpp b/test/test_parser.cpp index 0fe8cb87..e7893c05 100644 --- a/test/test_parser.cpp +++ b/test/test_parser.cpp @@ -60,15 +60,17 @@ TEST_CASE("External functions") REQUIRE(errs.size() == 3); if constexpr (is(OS::Linux)) { CHECK(errs[0].msg == Contains{"libbad.so: cannot open shared object file: No such file or directory"}); - CHECK(errs[0].msg == Contains{"libbad.so: cannot open shared object file: No such file or directory"}); + CHECK(errs[1].msg == Contains{"libbad.so: cannot open shared object file: No such file or directory"}); CHECK(errs[2].msg == Contains{"undefined symbol: absent"}); } else if constexpr (is(OS::Windows)) { CHECK(errs[0].msg == Contains{"Failed to open dynamic library libbad.dll: error 126: Module not found."}); - CHECK(errs[0].msg == Contains{"Failed to open dynamic library libbad.dll: error 126: Module not found."}); + CHECK(errs[1].msg == Contains{"Failed to open dynamic library"}); // absolute path + CHECK(errs[1].msg == Contains{"\\libbad.dll: error 126: Module not found"}); // absolute path CHECK(errs[2].msg == Contains{"Failed to find symbol: error 127: Procedure not found."}); } else if constexpr (is(OS::macOS)) { - CHECK(errs[0].msg == Contains{"dlopen(libbad.dylib, 6): image not found"}); - CHECK(errs[0].msg == Contains{"dlopen(libbad.dylib, 6): image not found"}); + CHECK(errs[0].msg == Contains{"dlopen(libbad.dylib, 0x0006): tried: 'libbad.dylib' (no such file)"}); + CHECK(errs[1].msg == Contains{"libbad.dylib, 0x0006): tried:"}); // absolute path + CHECK(errs[1].msg == Contains{" (no such file), "}); // absolute path CHECK(errs[2].msg == Contains{"absent): symbol not found"}); } else { REQUIRE_MESSAGE(false, "OS is not supported");