From c8fd5a8c7209c952fdc9a231f424a536c042b1cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 11 Jul 2022 05:43:59 +0300 Subject: [PATCH] analyze: fix test case when db.turbo is in $PWD --- src/analyze.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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", ); }