You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change travis.sh to check if variables are equal to yes instead of
not-empty.
Before this, setting `VALGRIND=wat` was considered as true, and to make it
evaluate as false you had to unset the variable `VALGRIND=` but not it
checks if `VALGRIND=yes` and if it's not `yes` then it's evaluated to
false
Copy file name to clipboardExpand all lines: contrib/travis.sh
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -23,16 +23,16 @@ if [ -n "$BUILD" ]
23
23
then
24
24
make -j2 "$BUILD"
25
25
fi
26
-
if [ -n"$VALGRIND" ]
26
+
if [ "$VALGRIND"="yes" ]
27
27
then
28
28
make -j2
29
29
# the `--error-exitcode` is required to make the test fail if valgrind found errors, otherwise it'll return 0 (http://valgrind.org/docs/manual/manual-core.html)
30
30
valgrind --error-exitcode=42 ./tests 16
31
31
valgrind --error-exitcode=42 ./exhaustive_tests
32
32
fi
33
-
if [ -n"$BENCH" ]
33
+
if [ "$BENCH"="yes" ]
34
34
then
35
-
if [ -n"$VALGRIND" ]
35
+
if [ "$VALGRIND"="yes" ]
36
36
then
37
37
# Using the local `libtool` because on macOS the system's libtool has nothing to do with GNU libtool
0 commit comments