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:
Anderson Toshiyuki Sasaki
2018-11-20 14:01:57 +01:00
committed by Andreas Schneider
parent 77be4ce905
commit 0dd2b375c7
4 changed files with 142 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ set(LIBSSH_UNIT_TESTS
torture_packet_filter
torture_temp_dir
torture_temp_file
torture_push_pop_dir
)
set(LIBSSH_THREAD_UNIT_TESTS