diff options
author | Gustavo Sousa <gustavo.sousa@intel.com> | 2023-01-13 18:37:43 -0300 |
---|---|---|
committer | Lucas De Marchi <lucas.de.marchi@gmail.com> | 2023-01-13 16:48:02 -0800 |
commit | e54f74c4f7ac9b2f55bc6ac2ffb940e04308bb3f (patch) | |
tree | a8bc2af653c79a0a1a2399998ae3666714aa8d6f | |
parent | 035e6667d1ace2fd77ef36f5e5d93cd4b1e128a2 (diff) | |
download | kmod-e54f74c4f7ac9b2f55bc6ac2ffb940e04308bb3f.tar.gz |
testsuite: Wrap chdir()
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>
-rw-r--r-- | testsuite/path.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/path.c b/testsuite/path.c index 964d33e..c1ae498 100644 --- a/testsuite/path.c +++ b/testsuite/path.c @@ -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*); |