Skip to content

Commit

Permalink
Fixes for probably outdated Valgrind on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
pkubowicz committed Mar 19, 2016
1 parent ac71d31 commit 7b5ad0d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -5,4 +5,6 @@ compiler:
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y flex valgrind
- flex --version
- valgrind --version
script: make && ./test.pl --valgrind
2 changes: 1 addition & 1 deletion test.pl
Expand Up @@ -41,7 +41,7 @@ sub execute_cmd {
sub get_cmd {
my ($cmd) = @_;
if ($ARGV[0] && $ARGV[0] eq '--valgrind') {
$cmd = "valgrind --leak-check=yes --leak-check=full --show-leak-kinds=all --error-exitcode=1 $cmd";
$cmd = "valgrind --leak-check=yes --leak-check=full --error-exitcode=1 $cmd";
}
return $cmd;
}
1 change: 1 addition & 0 deletions valgrind.sh
@@ -1,5 +1,6 @@
#!/bin/sh

export VALGRIND_OPTS="--show-leak-kinds=all"
make clean all CFLAGS='-ansi -pedantic -Wall -g -O0'
./test.pl --valgrind
make clean

0 comments on commit 7b5ad0d

Please sign in to comment.