AK: Make LexicalPath::relative_path() fallible

This commit is contained in:
stasoid 2024-10-22 22:53:25 +05:00 committed by Andrew Kaster
commit 31bf40b659
Notes: github-actions[bot] 2024-11-09 19:43:30 +00:00
8 changed files with 12 additions and 14 deletions

View file

@ -186,7 +186,7 @@ TESTJS_RUN_FILE_FUNCTION(ByteString const& test_file, JS::Realm& realm, JS::Exec
}
auto test_result = test_passed ? Test::Result::Pass : Test::Result::Fail;
auto test_path = LexicalPath::relative_path(test_file, Test::JS::g_test_root);
auto test_path = *LexicalPath::relative_path(test_file, Test::JS::g_test_root);
auto duration_ms = Test::get_time_in_ms() - start_time;
return Test::JS::JSFileResult {
test_path,