>From 44cc0b0513206f5015daded1c7f132a03df75f6e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 15 Feb 2015 00:22:19 +0100 Subject: [PATCH 8/8] Clean up unnamed.mec.xml file previously left over from MEC testing. Make sure that this implicitly created file is deleted on test termination. --- wx_test_validate_output.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wx_test_validate_output.cpp b/wx_test_validate_output.cpp index 63f8fdb..3ecf80f 100644 --- a/wx_test_validate_output.cpp +++ b/wx_test_validate_output.cpp @@ -586,6 +586,11 @@ struct enter_comments_in_case_defaults_dialog // Test creation of the output file when opening a new MEC testing document. output_file_existence_checker unnamed_output("unnamed.mec" + tsv_ext()); + // We don't really care about this file existence, but it is created as a + // side effect of running this test and we want to ensure it isn't left + // over and just creating this object satisfies this requirement. + output_file_existence_checker unnamed_xml("unnamed.mec.xml"); + wxUIActionSimulator ui; ui.Char('n', wxMOD_CONTROL); // "File|New" ui.Char('m'); // "MEC testing" -- 2.1.0