From 3a5df2906335c3e48e065a3b09b8fb572ced59ea Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Tue, 23 Apr 2024 17:24:05 -0600 Subject: [PATCH] test: add missing check The test 'tests clean up even on failures' was missing an actual check that the file was removed. Signed-off-by: Felipe Contreras --- test/sharness.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/sharness.t b/test/sharness.t index be8530dc6..96eb94473 100755 --- a/test/sharness.t +++ b/test/sharness.t @@ -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)\" '