13
0

Only create one test output directory in file copy test

Rather than one directory for each file
This commit is contained in:
Tim Mayberry 2015-07-25 16:36:06 +10:00
parent dfe2ac1d38
commit 226087d06a

View File

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