Commit 4dd17a7c9e

Andrew Kelley <andrew@ziglang.org>
2019-09-21 21:57:09
zig test: don't skip execution when explicit command provided
1 parent 2c681d7
Changed files (1)
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;