X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fcoroutine%2F_info;h=28032d8d113ca2a83321423b92b6685abfebe3b9;hb=d3d2242ba8d975f8d7ddaa0348953dfd6f45ffce;hp=a99629c91172476d9134c746a7666f98bf7ee0cb;hpb=1ddc881f084e2527ad9e3541807469920ac299b4;p=ccan diff --git a/ccan/coroutine/_info b/ccan/coroutine/_info index a99629c9..28032d8d 100644 --- a/ccan/coroutine/_info +++ b/ccan/coroutine/_info @@ -14,10 +14,6 @@ * * Author: David Gibson * License: LGPL (v2.1 or any later version) - * - * Ccanlint: - * // Context switching really confuses valgrind - * tests_pass_valgrind FAIL */ int main(int argc, char *argv[]) { @@ -40,5 +36,14 @@ 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; }