]> git.ozlabs.org Git - ccan/blobdiff - ccan/rszshm/_info
ccanlint: Move ccanlint test options from _info comments to code
[ccan] / ccan / rszshm / _info
index cc95400ce64f53bc0496b74bb2be4d2351197b33..e9122e0b78b76dd0489286c7cbe28f912d154b24 100644 (file)
  *     // $ tail -c +29 /dev/shm/rszshm_LAsEvt/0 | sed 's/./&\n/g' | sort | uniq -c | tr '\n' '\t'; echo
  *     //  515532 A   527251 B    512930 C    513062 D    544326 E    545876 F    512936 G    522363 H
  *
  *     // $ tail -c +29 /dev/shm/rszshm_LAsEvt/0 | sed 's/./&\n/g' | sort | uniq -c | tr '\n' '\t'; echo
  *     //  515532 A   527251 B    512930 C    513062 D    544326 E    545876 F    512936 G    522363 H
  *
- * Ccanlint: tests_pass_valgrind FAIL
  * License: APACHE-2
  * Author: Dan Good <dan@dancancode.com>
  * License: APACHE-2
  * Author: Dan Good <dan@dancancode.com>
- *
- * Ccanlint:
- *     // tests use optional macros containing statement expressions
- *     tests_compile_without_features FAIL
  */
 int main(int argc, char *argv[])
 {
  */
 int main(int argc, char *argv[])
 {
@@ -93,5 +88,12 @@ int main(int argc, char *argv[])
        if (strcmp(argv[1], "depends") == 0)
                return 0;
 
        if (strcmp(argv[1], "depends") == 0)
                return 0;
 
+       if (strcmp(argv[1], "ccanlint") == 0) {
+               printf("tests_pass_valgrind FAIL\n");
+               /* tests use optional macros containing statement expressions */
+               printf("tests_compile_without_features FAIL\n");
+               return 0;
+       }
+
        return 1;
 }
        return 1;
 }