]> git.ozlabs.org Git - ccan/blobdiff - ccan/coroutine/_info
base64: fix for unsigned chars (e.g. ARM).
[ccan] / ccan / coroutine / _info
index a99629c91172476d9134c746a7666f98bf7ee0cb..28032d8d113ca2a83321423b92b6685abfebe3b9 100644 (file)
  *
  * 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[])
 {
@@ -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;
 }