]> git.ipfire.org Git - thirdparty/kmod.git/commit
testsuite: Improve fake_delete behavior
authorGongjun Song <gongjun.song@intel.com>
Fri, 7 Mar 2025 02:33:51 +0000 (10:33 +0800)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 7 Mar 2025 04:36:17 +0000 (22:36 -0600)
commit9cb87e2d3a21ef840096a49838892771483496c2
tree8557b6c7bd6178adb4d61533f20072e607ee658a
parentec4d901d53aa311ab1c96b48c584256c66070ae1
testsuite: Improve fake_delete behavior

- When fake delete_module() succeeds, remove its entry from /sys/module.
- Add tests to ensure module is properly removed.

Co-developed-by: Qingqing Li <qingqing.li@intel.com>
Signed-off-by: Qingqing Li <qingqing.li@intel.com>
Signed-off-by: Dan He <dan.h.he@intel.com>
Signed-off-by: Gongjun Song <gongjun.song@intel.com>
Signed-off-by: Yuchi Chen <yuchi.chen@intel.com>
Signed-off-by: Wenjie Wang <wenjie2.wang@intel.com>
Link: https://github.com/kmod-project/kmod/pull/309
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/delete_module.c
testsuite/meson.build
testsuite/path.c
testsuite/test-remove.c [new file with mode: 0644]