From 9a7ae1ad9977a01a73ada81653cb7552514a6f8a Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Thu, 12 Feb 2015 20:05:54 +1000 Subject: [PATCH] Add some more test assertions so that tests fail when they should --- libs/pbd/test/filesystem_test.cc | 4 ++++ 1 file changed, 4 insertions(+) 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 copied_files;