]> git.ozlabs.org Git - ccan/blobdiff - ccan/coroutine/_info
coroutine: Enable valgrind
[ccan] / ccan / coroutine / _info
index 07e4b967e72777752a393eacafe32d7988afd12c..28032d8d113ca2a83321423b92b6685abfebe3b9 100644 (file)
@@ -37,8 +37,11 @@ int main(int argc, char *argv[])
        }
 
        if (strcmp(argv[1], "ccanlint") == 0) {
-               /* Context switching really confuses valgrind */
+#if !HAVE_VALGRIND_MEMCHECK_H
+               /* valgrind needs extra information to cope with stack
+                * switching */
                printf("tests_pass_valgrind FAIL\n");
+#endif
                return 0;
        }