diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2015-07-25 16:36:06 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2015-07-25 23:14:50 +1000 |
commit | 226087d06aaf9397c0fc6f07a7a94cfc12a7a9c7 (patch) | |
tree | cb2e0abe590aed09f6e1961256d02fe403fed5de /libs/pbd | |
parent | dfe2ac1d385e8fe9ddef1c3eb8db0397c24da151 (diff) |
Only create one test output directory in file copy test
Rather than one directory for each file
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/test/filesystem_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/pbd/test/filesystem_test.cc b/libs/pbd/test/filesystem_test.cc index b7a86d260c..31f6865afc 100644 --- a/libs/pbd/test/filesystem_test.cc +++ b/libs/pbd/test/filesystem_test.cc @@ -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; |