From c140bdf103ff140adc3efca43d5a0fa19bf649b1 Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Wed, 13 Nov 2024 16:30:58 -0300 Subject: [PATCH] rhbz_1647130: Remove tmp_dir at the end Guarantee the temporary directory is removed after the execution of this test. --- tests/rhbz_1647130/runtest.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/rhbz_1647130/runtest.sh b/tests/rhbz_1647130/runtest.sh index 1b8b6db..39f8a90 100755 --- a/tests/rhbz_1647130/runtest.sh +++ b/tests/rhbz_1647130/runtest.sh @@ -5,3 +5,4 @@ tmp_dir=$(mktemp -d) echo 'int main(int argc, char*argv[]) { while(argc--) new int(); return 0; }' > "$tmp_cpp" scan-build -o "$tmp_dir" clang++ -c "$tmp_cpp" -o /dev/null (scan-view --no-browser "$tmp_dir"/* & WPID=$! && sleep 10s && kill $WPID) +rm -rf "$tmp_cpp" "$tmp_dir"