]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite: Wrap chdir()
authorGustavo Sousa <gustavo.sousa@intel.com>
Fri, 13 Jan 2023 21:37:43 +0000 (18:37 -0300)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Sat, 14 Jan 2023 00:48:02 +0000 (16:48 -0800)
One of the tests in an upcoming patch will need to change into a
specific directory to test loading a module from a relative path.

Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/path.c

index 964d33eb25a053ce8052047b8189f97849d891e6..c1ae4986b865ac314b2830f21265915fff95634b 100644 (file)
@@ -185,6 +185,7 @@ TS_EXPORT int prefix ## stat ## suffix (int ver,        \
 }
 
 WRAP_1ARG(DIR*, NULL, opendir);
+WRAP_1ARG(int, -1, chdir);
 
 WRAP_2ARGS(FILE*, NULL, fopen, const char*);
 WRAP_2ARGS(FILE*, NULL, fopen64, const char*);