]> git.ozlabs.org Git - ccan/blobdiff - ccan/coroutine/_info
ccanlint: Move ccanlint test options from _info comments to code
[ccan] / ccan / coroutine / _info
index a99629c91172476d9134c746a7666f98bf7ee0cb..07e4b967e72777752a393eacafe32d7988afd12c 100644 (file)
  *
  * Author: David Gibson <david@gibson.dropbear.id.au>
  * License: LGPL (v2.1 or any later version)
  *
  * Author: David Gibson <david@gibson.dropbear.id.au>
  * License: LGPL (v2.1 or any later version)
- *
- * Ccanlint:
- *     // Context switching really confuses valgrind
- *     tests_pass_valgrind FAIL
  */
 int main(int argc, char *argv[])
 {
  */
 int main(int argc, char *argv[])
 {
@@ -40,5 +36,11 @@ int main(int argc, char *argv[])
                return 0;
        }
 
                return 0;
        }
 
+       if (strcmp(argv[1], "ccanlint") == 0) {
+               /* Context switching really confuses valgrind */
+               printf("tests_pass_valgrind FAIL\n");
+               return 0;
+       }
+
        return 1;
 }
        return 1;
 }