rhbz_1647130: Remove tmp_dir at the end
Guarantee the temporary directory is removed after the execution of this test.
This commit is contained in:
parent
cda9761d2e
commit
c140bdf103
1 changed files with 1 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue