Skip to content

Commit d1254e1

Browse files
DowsleyCalinou
andauthored
Update main/main.cpp
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
1 parent f03a54b commit d1254e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main/main.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,7 @@ int Main::test_entrypoint(int argc, char *argv[], bool &tests_need_run) {
863863
for (int x = 0; x < argc; x++) {
864864
// Early return to ignore a possible user-provided "--test" argument.
865865
if ((strlen(argv[x]) == 2) && ((strncmp(argv[x], "--", 2) == 0) || (strncmp(argv[x], "++", 2) == 0))) {
866+
tests_need_run = false;
866867
return EXIT_SUCCESS;
867868
}
868869
if ((strncmp(argv[x], "--test", 6) == 0) && (strlen(argv[x]) == 6)) {

0 commit comments

Comments
 (0)