1
Fork 0

analyze: fix test case when db.turbo is in $PWD

main
Motiejus Jakštys 2022-07-11 05:43:59 +03:00
parent 55c63b29da
commit c8fd5a8c72
1 changed files with 2 additions and 2 deletions

View File

@ -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",
);
}