From e54f74c4f7ac9b2f55bc6ac2ffb940e04308bb3f Mon Sep 17 00:00:00 2001 From: Gustavo Sousa Date: Fri, 13 Jan 2023 18:37:43 -0300 Subject: [PATCH] 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 --- testsuite/path.c | 1 + 1 file changed, 1 insertion(+) 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*); -- 2.47.3