jasmcaus / tau

A Micro (1k lines of code) Unit Test Framework for C/C++
MIT License
158 stars 30 forks source link

--list option must not run but only list the tests #14

Closed 0xfk0 closed 2 years ago

0xfk0 commented 2 years ago
diff --git a/tau/tau.h b/tau/tau.h
index d446912..ab67bd3 100644
--- a/tau/tau.h
+++ b/tau/tau.h
@@ -1044,6 +1043,7 @@ static TAU_Bool tauCmdLineRead(int argc, char** argv) {
         else if(strncmp(argv[i], listStr, strlen(listStr)) == 0) {
             for (i = 0; i < tauTestContext.numTestSuites; i++)
                 tauPrintf("%s\n", tauTestContext.tests[i].name);
+           return TAU_false;
         }

         // Disable colouring
jasmcaus commented 2 years ago

Please refer to #12 and #13