]> git.ipfire.org Git - thirdparty/kmod.git/commit
testsuite/test-weakdep: remove custom handling
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 21 Nov 2024 17:53:47 +0000 (17:53 +0000)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 29 Nov 2024 15:48:29 +0000 (09:48 -0600)
commit1359eeb2493aad5a5c971b7b4ed0efc9f1260caa
treeb6540487525742d8a39cd721a75b0df47b5449f1
parent62eaff4a16dd459a9fd60c3002738d7d06417eee
testsuite/test-weakdep: remove custom handling

Currently test-weakdep is the only test which explicitly sets the kernel
module lookup directory and the modprobe.d location. It does so by
explicitly hard-coding the full path for both, thus effectively
bypassing the path handling done in our `LD_PRELOAD` module `path.so`.

Just use `kmod_new(NULL, NULL);` which will ensure that everything is
handled relatively to `TC_ROOTFS` defined further down in the test.

Note: this technically reduces our test coverage, although kmod_new() is
not the goal of this test and should be handled separately.

Noticed while removing the TESTSUITE_ROOTFS instances from DEFINE_TEST()

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/258
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/test-weakdep.c