Skip to content

Commit

Permalink
tests/agrep: Remove input file after running tests.
Browse files Browse the repository at this point in the history
This avoids two problems when running distcheck:

* Tests fail because the input file already exists.
* Post-test checks fail because input files were left behind.
  • Loading branch information
dag-erling committed Jun 30, 2024
1 parent b6a6f39 commit 9f8e2a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/agrep/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ EOF
Exit status $status.
EOF
done

rm -f $input
done
num_tests=`expr $num_tests + 1`
case $host_triplet in
Expand Down

0 comments on commit 9f8e2a7

Please sign in to comment.