HomePhabricator

tests: Introduce torture_create_temp_file()

Authored by Anderson Toshiyuki Sasaki <ansasaki@redhat.com> on Mon, Nov 19, 1:10 PM.

Description

tests: Introduce torture_create_temp_file()

Introduced torture_create_temp_file() and torture_close_fp() to allow
creating temprary files transparently in Unix and Windows environment.
This also adds a unit test for the added functions.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>

Details

Committed
asnWed, Nov 28, 3:51 PM
Parents
rLIBSSH31527d41059c: tests: Use torture_make_temp_dir() in torture_setup_socket_dir()
Branches
Unknown
Tags
Unknown