mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Tests: Use FileSystem::real_path when comparing paths
Paths in `headless-browser` tests were being compared by string value. With this patch, they will be compared by their real path instead, ensuring relative paths and symlinks are handled correctly.
This commit is contained in:
@@ -48,7 +48,7 @@ static ErrorOr<void> load_test_config(StringView test_root_path)
|
||||
for (auto const& group : config->groups()) {
|
||||
if (group == "Skipped"sv) {
|
||||
for (auto& key : config->keys(group))
|
||||
s_skipped_tests.append(LexicalPath::join(test_root_path, key).string());
|
||||
s_skipped_tests.append(TRY(FileSystem::real_path(LexicalPath::join(test_root_path, key).string())));
|
||||
} else {
|
||||
warnln("Unknown group '{}' in config {}", group, config_path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user