Skip to content

Commit 61d1e3f

Browse files
committed
Use tmp folder for output exr in a test
Signed-off-by: Aleksandr Motsjonov <[email protected]>
1 parent 2a20885 commit 61d1e3f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/usage_example_util.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,16 @@ void test_ImageConverter_arguments()
2323
std::filesystem::absolute( image_path ).string();
2424

2525
// Input parameters.
26-
const char *argv[] = { "DUMMY PROGRAM PATH", "--wb-method", "metadata",
27-
"--mat-method", "metadata", "--overwrite" };
26+
std::filesystem::path temp_output_dir =
27+
std::filesystem::temp_directory_path() /
28+
"rawtoaces_usage_example_output";
29+
std::cout << "temp_output_dir: " << temp_output_dir << std::endl;
30+
std::filesystem::create_directories( temp_output_dir );
31+
std::string temp_output_dir_str = temp_output_dir.string();
32+
const char *argv[] = { "DUMMY PROGRAM PATH", "--wb-method",
33+
"metadata", "--mat-method",
34+
"metadata", "--overwrite",
35+
"--output-dir", temp_output_dir_str.c_str() };
2836

2937
const size_t argc = sizeof( argv ) / sizeof( argv[0] );
3038

0 commit comments

Comments
 (0)