Only create one test output directory in file copy test
authorTim Mayberry <mojofunk@gmail.com>
Sat, 25 Jul 2015 06:36:06 +0000 (16:36 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Sat, 25 Jul 2015 13:14:50 +0000 (23:14 +1000)
Rather than one directory for each file

libs/pbd/test/filesystem_test.cc

index b7a86d260ca6d420d032c5cb633ebe02e4bb541b..31f6865afcd5e8a531ec00504c7ebf68295b49c9 100644 (file)
@@ -108,11 +108,12 @@ FilesystemTest::testCopyFileUTF8Filename ()
        cerr << "Copying " << i18n_files.size() << " test files from: "
             << i18n_path.to_string () << endl;
 
+       string output_dir = test_output_directory ("CopyFile");
+
        for (vector<string>::iterator i = i18n_files.begin(); i != i18n_files.end(); ++i) {
                string input_path = *i;
                string output_file = Glib::path_get_basename(*i);
-               string output_path = test_output_directory ("CopyFile");
-               output_path = Glib::build_filename (output_path, output_file);
+               string output_path = Glib::build_filename (output_dir, output_file);
 
                cerr << "Copying test file: " << input_path
                     << " To " << output_path << endl;