zig test: don't skip execution when explicit command provided

This commit is contained in:
Andrew Kelley 2019-09-21 15:57:09 -04:00
parent 2c681d7ba1
commit 4dd17a7c9e
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -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;