diff --git a/src/analyze.zig b/src/analyze.zig index 332891a..b4344d4 100644 --- a/src/analyze.zig +++ b/src/analyze.zig @@ -158,7 +158,7 @@ fn execute( const testing = std.testing; test "trivial error: db file" { - const args = &[_][*:0]const u8{}; + const args = &[_][*:0]const u8{"/does/not/exist.turbo"}; const allocator = testing.allocator; var stderr = ArrayList(u8).init(allocator); defer stderr.deinit(); @@ -169,7 +169,7 @@ test "trivial error: db file" { try testing.expectEqual(@as(u8, 1), exit_code); try testing.expectEqualStrings( stderr.items, - "ERROR: failed to open 'db.turbo': FileNotFound\n", + "ERROR: failed to open '/does/not/exist.turbo': FileNotFound\n", ); }