From: Gustavo Sousa Date: Fri, 13 Jan 2023 21:37:43 +0000 (-0300) Subject: testsuite: Wrap chdir() X-Git-Tag: v31~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e54f74c4f7ac9b2f55bc6ac2ffb940e04308bb3f;p=thirdparty%2Fkmod.git 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 Signed-off-by: Lucas De Marchi --- diff --git a/testsuite/path.c b/testsuite/path.c index 964d33eb..c1ae4986 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*);