mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
AK: Make LexicalPath::relative_path() fallible
This commit is contained in:
parent
f026d495cd
commit
31bf40b659
Notes:
github-actions[bot]
2024-11-09 19:43:30 +00:00
Author: https://github.com/stasoid
Commit: 31bf40b659
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1918
Reviewed-by: https://github.com/ADKaster ✅
8 changed files with 12 additions and 14 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue