common/rc: report kmemleak errors
[xfstests-dev.git] / check
diff --git a/check b/check
index 2bdad3995b3d589c33d0e0a8a3af63fb6b61b8d6..58a2f5cca8b0b8dba1f0d51d993c024ca7850d97 100755 (executable)
--- a/check
+++ b/check
@@ -499,6 +499,7 @@ _expunge_test()
        return 0
 }
 
+_init_kmemleak
 _prepare_test_list
 
 if $OPTIONS_HAVE_SECTIONS; then
@@ -791,6 +792,7 @@ for section in $HOST_OPTIONS_SECTIONS; do
                    n_try=`expr $n_try + 1`
                    _check_filesystems
                    _check_dmesg || err=true
+                   _check_kmemleak || err=true
                fi
 
            fi