Skip to content
Permalink
Browse files

Instrument xattr test cleanup, sudo for kmem lead checking.

Re-push.
  • Loading branch information...
PaulZ-98 committed Oct 7, 2019
1 parent 9315ad9 commit 9fba6efeb9b137181300ca06ac64b0416eb60a41
@@ -140,9 +140,9 @@ function check_mem_leaks {
log_note "Checking for leaks $KMEMLEAK_FILE"
if $(test -e "$KMEMLEAK_FILE"); then
# Scan must be run twice to ensure all leaks are detected.
sh -c "echo scan >$KMEMLEAK_FILE"
sh -c "echo scan >$KMEMLEAK_FILE"
cat $KMEMLEAK_FILE >$KMEMLEAK_LOG
sudo sh -c "echo scan >$KMEMLEAK_FILE"
sudo sh -c "echo scan >$KMEMLEAK_FILE"
sudo cat $KMEMLEAK_FILE >$KMEMLEAK_LOG

if [ -s "$KMEMLEAK_LOG" ]; then
echo "Kmemleak detected see $KMEMLEAK_LOG"
@@ -46,6 +46,7 @@ function cleanup
{
log_must zpool destroy -f txg-number-pool
log_must rm $TEST_BASE_DIR/zfs-txg-number.dat
check_mem_leaks
}


0 comments on commit 9fba6ef

Please sign in to comment.
You can’t perform that action at this time.