Skip to content

Commit 9dadc1b

Browse files
committed
handle tests in the root of the test folder
1 parent ace5ba5 commit 9dadc1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main_wpt.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ fn run(arena: Allocator, test_file: []const u8, loader: *FileLoader, err_out: *?
104104
return null;
105105
}
106106

107-
const dirname = std.fs.path.dirname(test_file) orelse unreachable;
107+
// this returns null for the success.html test in the root of tests/wpt
108+
const dirname = std.fs.path.dirname(test_file) orelse "";
108109

109110
var runner = try @import("testing.zig").jsRunner(arena, .{
110111
.html = html,

0 commit comments

Comments
 (0)