*
* 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[])
{
return 0;
}
+ if (strcmp(argv[1], "ccanlint") == 0) {
+#if !HAVE_VALGRIND_MEMCHECK_H
+ /* valgrind needs extra information to cope with stack
+ * switching */
+ printf("tests_pass_valgrind FAIL\n");
+#endif
+ return 0;
+ }
+
return 1;
}