summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2018-12-18 15:37:35 -0800
committerLucas De Marchi <lucas.demarchi@intel.com>2019-01-03 12:43:18 -0800
commiteb862179c06bb1198ca7f3957e2d462e51da4d18 (patch)
tree7cf98f70b47763e63d7ddf01d45f55af09887a6d /testsuite
parentc0937526b24dcd6b97e67d259ae15e9f2e0c4396 (diff)
downloadkmod-eb862179c06bb1198ca7f3957e2d462e51da4d18.tar.gz
kmod-eb862179c06bb1198ca7f3957e2d462e51da4d18.tar.bz2
kmod-eb862179c06bb1198ca7f3957e2d462e51da4d18.zip
testsuite: move --show-exports test to use regex
This allows it to pass if the kernel is configured with CONFIG_MODVERSIONS.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/rootfs-pristine/test-modprobe/show-exports/correct.txt2
-rw-r--r--testsuite/test-modprobe.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/rootfs-pristine/test-modprobe/show-exports/correct.txt b/testsuite/rootfs-pristine/test-modprobe/show-exports/correct.txt
index bc2d045..0d659ef 100644
--- a/testsuite/rootfs-pristine/test-modprobe/show-exports/correct.txt
+++ b/testsuite/rootfs-pristine/test-modprobe/show-exports/correct.txt
@@ -1 +1 @@
-0x00000000 printA
+0x[0-9a-fA-F]+ printA
diff --git a/testsuite/test-modprobe.c b/testsuite/test-modprobe.c
index 52a6621..1cace82 100644
--- a/testsuite/test-modprobe.c
+++ b/testsuite/test-modprobe.c
@@ -114,6 +114,7 @@ DEFINE_TEST(modprobe_show_exports,
},
.output = {
.out = TESTSUITE_ROOTFS "test-modprobe/show-exports/correct.txt",
+ .regex = true,
});