Skip to content

Commit

Permalink
test: add missing check
Browse files Browse the repository at this point in the history
The test 'tests clean up even on failures' was missing an actual check
that the file was removed.

Signed-off-by: Felipe Contreras <[email protected]>
  • Loading branch information
felipec committed Apr 23, 2024
1 parent c6ff6db commit 3a5df29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/sharness.t
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,10 @@ test_expect_success 'tests clean up even on failures' "
test_when_finished rm clean-after-failure &&
(exit 1)
'
if test -e clean-after-failure; then
say 'bug in test framework'
exit 1
fi
test_expect_success 'failure to clean up causes the test to fail' '
test_when_finished \"(exit 2)\"
'
Expand Down

0 comments on commit 3a5df29

Please sign in to comment.