The test for determining whether to run valgrind was backwards. Correcting that allow the run_test.sh script to stay the same and one just needs to define "VALGRIND=yes" (or any non-null string) to make run_test.sh use valgrind.
The test for determining whether to run valgrind was backwards.
Correcting that allow the run_test.sh script to stay the same and one
just needs to define "VALGRIND=yes" (or any non-null string) to make
run_test.sh use valgrind.

Signed-off-by: William Cohen <wcohen@redhat.com>
---
src/run_tests.sh | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/run_tests.sh b/src/run_tests.sh
index d1ce205..9337ff2 100755
--- a/src/run_tests.sh
+++ b/src/run_tests.sh
@@ -19,10 +19,8 @@ else
  export TESTS_QUIET
fi

-if [ "x$VALGRIND" = "x" ]; then
-# Uncomment the following line to run tests using Valgrind
-# VALGRIND="valgrind --leak-check=full";
-    VALGRIND="";
+if [ "x$VALGRIND" != "x" ]; then
+    VALGRIND="valgrind --leak-check=full";
fi

#CTESTS=`find ctests -maxdepth 1 -perm -u+x -type f`;
--

pyrovski/papi,pyrovski/papi,pyrovski/papi,arm-hpc/papi,pyrovski/papi,pyrovski/papi,arm-hpc/papi,arm-hpc/papi,arm-hpc/papi,arm-hpc/papi,arm-hpc/papi,pyrovski/papi,pyrovski/papi,arm-hpc/papi,pyrovski/papi