diff options
author | Brad King <brad.king@kitware.com> | 2014-04-08 19:25:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-04-09 20:43:27 (GMT) |
commit | c8d72dc46992498c2c35e34e0b599bbae9356bb3 (patch) | |
tree | 9d2b269076af69cfc45daaed32457c33980efa20 /test/run.cmake | |
parent | 7f62b3ae7ba4ada760b1f519e2c70569b02b84d0 (diff) | |
download | CastXML-c8d72dc46992498c2c35e34e0b599bbae9356bb3.zip CastXML-c8d72dc46992498c2c35e34e0b599bbae9356bb3.tar.gz CastXML-c8d72dc46992498c2c35e34e0b599bbae9356bb3.tar.bz2 |
test: Remove xml output files before running castxml
Ensure that test output is produced by castxml and not left from a
previous test run.
Diffstat (limited to 'test/run.cmake')
-rw-r--r-- | test/run.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/run.cmake b/test/run.cmake index 9cf4ad6..3699b6c 100644 --- a/test/run.cmake +++ b/test/run.cmake @@ -15,6 +15,10 @@ #============================================================================= cmake_minimum_required(VERSION 2.8.5) +if(xml) + file(REMOVE "${xml}") +endif() + execute_process( COMMAND ${command} OUTPUT_VARIABLE actual_stdout |