From 4dd17a7c9e3e5220a088087b3729354d6b85b279 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 21 Sep 2019 15:57:09 -0400 Subject: [PATCH] zig test: don't skip execution when explicit command provided --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 03709745f2..cdee60bc5d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1300,7 +1300,7 @@ int main(int argc, char **argv) { } } - if (!target_can_exec(&native, &target)) { + if (!target_can_exec(&native, &target) && test_exec_args.length == 0) { fprintf(stderr, "Created %s but skipping execution because it is non-native.\n", buf_ptr(test_exe_path)); return 0;