Skip to content

Commit 33f337d

Browse files
authored
Update error handling for file not found
1 parent 23620da commit 33f337d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/serial.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ test "basic configuration test" {
11791179
}
11801180

11811181
var port = std.Io.Dir.openFileAbsolute(std.testing.io, tty, .{ .mode = .read_write }) catch |err| switch(err) {
1182-
error.FileNotFound => return error.ZigSkipTest,
1182+
error.FileNotFound => return error.SkipZigTest,
11831183
else => |e| return e,
11841184
};
11851185
defer port.close(std.testing.io);
@@ -1197,7 +1197,7 @@ test "basic flush test" {
11971197
else => unreachable,
11981198
}
11991199
var port = std.Io.Dir.openFileAbsolute(std.testing.io, tty, .{ .mode = .read_write }) catch |err| switch(err) {
1200-
error.FileNotFound => return error.ZigSkipTest,
1200+
error.FileNotFound => return error.SkipZigTest,
12011201
else => |e| return e,
12021202
};
12031203
defer port.close(std.testing.io);

0 commit comments

Comments
 (0)