tests: use torture_create_temp_file() in torture_knownhosts_parsing

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-19 13:45:36 +01:00
committed by Andreas Schneider
parent 78b1f0ead3
commit 77be4ce905
3 changed files with 15 additions and 21 deletions

View File

@@ -1058,6 +1058,7 @@ char *torture_create_temp_file(const char *template)
goto free_prefix;
}
/* Remark: this function creates the file */
rc = GetTempFileNameA(tmp_dir_path, TEXT(prefix), 0, tmp_file_name);
if (rc == 0) {
goto free_prefix;