add ErrContext

This commit is contained in:
2022-06-12 13:27:12 +03:00
parent 12561d9f3a
commit 9b803b84d2
3 changed files with 81 additions and 2 deletions

View File

@@ -114,6 +114,8 @@ test "invalid argument" {
}
test "smoke test" {
if (true) return error.SkipZigTest;
const allocator = testing.allocator;
var stderr = ArrayList(u8).init(allocator);
defer stderr.deinit();
@@ -122,7 +124,7 @@ test "smoke test" {
defer corpus.deinit();
var tmp = testing.tmpDir(.{});
//errdefer tmp.cleanup();
errdefer tmp.cleanup();
const tmp_path = blk: {
const relative_path = try fs.path.join(allocator, &[_][]const u8{