Code

cibuild.sh: Don't run regular tests when using the address sanitizer.
authorSebastian Harl <sh@tokkee.org>
Fri, 2 May 2014 15:15:57 +0000 (17:15 +0200)
committerSebastian Harl <sh@tokkee.org>
Fri, 2 May 2014 15:18:16 +0000 (17:18 +0200)
valgrind does not play well with the address sanitizer. Also, there's no need
to rerun the regular tests on asan generated code (which is a test on its
own).

t/cibuild.sh

index b90fb41855028091d3a2917245f21982894df220..61f4a8b09b658e3b13c75dd17cc7249517a275d7 100755 (executable)
@@ -11,4 +11,13 @@ set -ex
        CFLAGS="-O0 $CICFLAGS" \
        LDFLAGS="$CILDFLAGS"
 make clean all
-make test
+
+case "$CICFLAGS" in
+       *sanitize=address*)
+               # skip regular tests
+               ;;
+       *)
+               make test
+               ;;
+esac
+