Commit ce53fdd5 authored by Shane Snyder's avatar Shane Snyder

bug fix in regression test condition check

parent f139502f
......@@ -46,12 +46,12 @@ fi
source $DARSHAN_TESTDIR/$DARSHAN_PLATFORM/env.sh
# in case of using LD_PRELOAD, it is possible errors with Darshan symbols
# (e..g, forgetting to resolve a symbol Darshan wraps uses using dlsym)
# can cause arbitrary binaries to crash. We check the output of the true
# (e..g, forgetting to resolve a symbol Darshan wraps using dlsym) can
# cause arbitrary binaries to crash. We check the output of the true
# command to successfully identify failures like this and exit
true_out=`/bin/true 2>&1`
if [ $? -ne 0 -o -n true_out ]; then
echo $true_out
if [ $? -ne 0 -o -n "$true_out" ]; then
echo -n $true_out > tmp
echo "environment setup failed"
exit 1
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment