summaryrefslogtreecommitdiff
path: root/libs/pbd/test
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2015-02-12 20:05:54 +1000
committerTim Mayberry <mojofunk@gmail.com>2015-02-12 20:06:47 +1000
commit9a7ae1ad9977a01a73ada81653cb7552514a6f8a (patch)
tree5561e09353d676f25f59acae6bf36f81a8ae5052 /libs/pbd/test
parent0f0aebf26b5d5a6c30804af9a9665e66489813e3 (diff)
Add some more test assertions so that tests fail when they should
Diffstat (limited to 'libs/pbd/test')
-rw-r--r--libs/pbd/test/filesystem_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/pbd/test/filesystem_test.cc b/libs/pbd/test/filesystem_test.cc
index 28ba11329b..2e3638ea71 100644
--- a/libs/pbd/test/filesystem_test.cc
+++ b/libs/pbd/test/filesystem_test.cc
@@ -78,6 +78,8 @@ FilesystemTest::testCopyFileUTF8Filename ()
PBD::find_files_matching_pattern (i18n_files, i18n_path, "*.tst");
+ CPPUNIT_ASSERT (i18n_files.size() == 8);
+
cerr << endl;
cerr << "Copying " << i18n_files.size() << " test files from: "
<< i18n_path.to_string () << endl;
@@ -130,6 +132,8 @@ create_test_directory (std::string test_dir)
cerr << "Copying " << test_files.size() << " test files from: "
<< test_dir_path << " to " << output_dir << endl;
+ CPPUNIT_ASSERT (test_files.size() != 0);
+
PBD::copy_files (test_dir_path, output_dir);
vector<string> copied_files;