[DTrace-devel] [PATCH] test: adjust err.unloaded_var.x to match test

Kris Van Hees kris.van.hees at oracle.com
Thu Aug 1 17:04:28 UTC 2024


Commit d9158b26 ("test: adjust err.unloaded_var.d again.") adjusted the
test but failed to adjust the matching .x file.  Along with changing
the kernel module name (and location), we can also drop the testing for
the CTF archive since it is not necessary.  In addition, we allow for
either gfs2.ko or gfs2.ko.xz to handle compressed kernel modules.

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
---
 test/unittest/types/err.unloaded_var.x | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/unittest/types/err.unloaded_var.x b/test/unittest/types/err.unloaded_var.x
index e8ad2e76..54c61d57 100755
--- a/test/unittest/types/err.unloaded_var.x
+++ b/test/unittest/types/err.unloaded_var.x
@@ -2,7 +2,7 @@
 # Licensed under the Universal Permissive License v 1.0 as shown at
 # http://oss.oracle.com/licenses/upl.
 #
-# XFAIL if hysdn.ko not found (exit 1)
-[[ ! -e /lib/modules/$(uname -r)/kernel/drivers/isdn/hysdn/hysdn.ko ]] &&
-[[ ! -e /lib/modules/$(uname -r)/kernel/vmlinux.ctfa ]] && exit 1;
+# XFAIL if gfs2.ko not found (exit 1)
+[[ ! -e /lib/modules/$(uname -r)/kernel/fs/gfs2/gfs2.ko ]] &&
+[[ ! -e /lib/modules/$(uname -r)/kernel/fs/gfs2/gfs2.ko.xz ]] && exit 1;
 exit 0
-- 
2.45.2




More information about the DTrace-devel mailing list