[PATCH v2 1/3] testsuite: Wrap chdir()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 testsuite/path.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testsuite/path.c b/testsuite/path.c
index 964d33eb25a0..c1ae4986b865 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.39.0




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux