mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
tests: Introduce functions to change directories
This introduces torture_get_current_working_dir() and torture_change_dir() to allow changing directories in tests. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
77be4ce905
commit
0dd2b375c7
@@ -128,4 +128,7 @@ int torture_run_tests(void);
|
||||
char *torture_make_temp_dir(const char *template);
|
||||
char *torture_create_temp_file(const char *template);
|
||||
|
||||
char *torture_get_current_working_dir(void);
|
||||
int torture_change_dir(char *path);
|
||||
|
||||
#endif /* _TORTURE_H */
|
||||
|
||||
Reference in New Issue
Block a user