aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisono Tomohiro <misono.tomohiro@jp.fujitsu.com>2018-04-23 14:23:14 +0900
committerEryu Guan <guaneryu@gmail.com>2018-04-23 14:10:46 +0800
commitd3977ca35aaf93734490f71b28643e3f58ccb6a4 (patch)
treeadd2adb41f4af0f0b8b80469f7b70e416bea11d5
parentd4da414a9a9df9617035e5ce2c66252fba20df93 (diff)
downloadxfstests-dev-d3977ca35aaf93734490f71b28643e3f58ccb6a4.tar.gz
common/rc: move rm out from if block to always delete kmemleak temp file
Otherwise, *.kmemleak.tmp may remain in result folder if kmemleak is on. Signed-off-by: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
-rw-r--r--common/rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rc b/common/rc
index 366489bbd2..0c3359fd55 100644
--- a/common/rc
+++ b/common/rc
@@ -3515,8 +3515,8 @@ EXPERIMENTAL kmemleak reported some memory leaks! Due to the way kmemleak
works, the leak might be from an earlier test, or something totally unrelated.
ENDL
cat "$leak_file.tmp" >> "$leak_file"
- rm -rf "$leak_file.tmp"
fi
+ rm -rf "$leak_file.tmp"
echo "clear" > "$kern_knob"
}