diff options
author | Mattias Ellert <mattias.ellert@fysast.uu.se> | 2015-09-23 15:28:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-09-24 18:01:40 (GMT) |
commit | 552dd691215cdafdbe6706e6f76be9d392fb3ffe (patch) | |
tree | bc66f1103b03b6a84db7aaafe776ef6c4cbba8b7 /test/run.cmake | |
parent | 11e1e5db4699b26ed86be316ab068dbc59b912b0 (diff) | |
download | CastXML-552dd691215cdafdbe6706e6f76be9d392fb3ffe.zip CastXML-552dd691215cdafdbe6706e6f76be9d392fb3ffe.tar.gz CastXML-552dd691215cdafdbe6706e6f76be9d392fb3ffe.tar.bz2 |
test: Tolerate warnings about unknown float abi
When running with an 'arm' target architecture, Clang warns:
warning: unknown platform, assuming -mfloat-abi=soft
Tolerate this warning in test output by removing it before matching.
Diffstat (limited to 'test/run.cmake')
-rw-r--r-- | test/run.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/run.cmake b/test/run.cmake index 47958b6..d5e61ff 100644 --- a/test/run.cmake +++ b/test/run.cmake @@ -49,6 +49,7 @@ set(default_stdout "^$") set(default_stderr "^$") foreach(o result stdout stderr ${maybe_xml}) + string(REGEX REPLACE "(^|\n)warning: unknown platform, assuming -mfloat-abi=soft\n" "\\1" actual_${o} "${actual_${o}}") string(REGEX REPLACE "\n+$" "" actual_${o} "${actual_${o}}") string(REGEX REPLACE "\n" "\n actual-${o}> " actual-${o} " actual-${o}> ${actual_${o}}") set(actual-${o} "Actual ${o}:\n${actual-${o}}\n") |