aboutsummaryrefslogtreecommitdiff
path: root/test/cli.zig
diff options
context:
space:
mode:
authorErsikan <julien.philippon@epitech.eu>2021-03-14 18:12:42 +0100
committerErsikan <julien.philippon@epitech.eu>2021-03-17 10:27:41 +0100
commit36db4b7cc48e9e2b1bed5a977f36ef3a0f158ee8 (patch)
tree02c914d7dc07714c36a69ce2af7c7b2096baa5e0 /test/cli.zig
parent8942243f7a825e42c16c8d210f5f9dc3baa76b2f (diff)
downloadzig-36db4b7cc48e9e2b1bed5a977f36ef3a0f158ee8.tar.gz
zig-36db4b7cc48e9e2b1bed5a977f36ef3a0f158ee8.zip
test-cli: Remove temporary directory after tests
Diffstat (limited to 'test/cli.zig')
-rw-r--r--test/cli.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/cli.zig b/test/cli.zig
index db58511d14..dedea67a59 100644
--- a/test/cli.zig
+++ b/test/cli.zig
@@ -28,6 +28,8 @@ pub fn main() !void {
const zig_exe = try fs.path.resolve(a, &[_][]const u8{zig_exe_rel});
const dir_path = try fs.path.join(a, &[_][]const u8{ cache_root, "clitest" });
+ defer fs.cwd().deleteTree(dir_path) catch {};
+
const TestFn = fn ([]const u8, []const u8) anyerror!void;
const test_fns = [_]TestFn{
testZigInitLib,