Skip to content

Commit

Permalink
XFAIL support for LLNL/openmp5.0-tests tests
Browse files Browse the repository at this point in the history
The test test_imperfect_loop.cxx contains a loop collapse operation that
cannot be executed safely in parallel, so should be marked as expected
to fail, somehow.  This patch adds a basic way to do that.
  • Loading branch information
jtb20 committed Jun 19, 2024
1 parent eb798bb commit 86dc346
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/rocm-test/scripts/parse_LLNL.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ fi
if [ -e failing-tests.txt ]; then
rm failing-tests.txt
fi
if [ -e xfail-tests.txt ]; then
rm xfail-tests.txt
fi
if [ -e make-fail.txt ]; then
rm make-fail.txt
fi
Expand All @@ -49,6 +52,10 @@ function parse(){
fi
[[ "$line" =~ $testname_regex ]]
llnltest=${BASH_REMATCH[1]}
if [ "$outfile" = "failing-tests.txt" ] && \
grep -Fq "$llnltest" xfail-list then
outfile="xfail-tests.txt"
fi
echo "$llnltest" >> $outfile
fi
done < "$infile"
Expand Down
1 change: 1 addition & 0 deletions test/LLNL/openmp5.0-tests/xfail-list
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test_imperfect_loop run

0 comments on commit 86dc346

Please sign in to comment.