diff options
author | Christoph Behle <christoph_behle@web.de> | 2018-07-08 16:25:05 +0200 |
---|---|---|
committer | Christoph Behle <behlec@gmail.com> | 2018-07-08 18:19:17 +0200 |
commit | dffa7f35649185c1a8e096f9efa03631ef52d194 (patch) | |
tree | 40fff97b15c817f496d1780fdfed642f63fffeb9 /run_unittests.py | |
parent | 2f494d2ccf798a1a1684ccece4f8b5d35b828bf0 (diff) | |
download | meson-dffa7f35649185c1a8e096f9efa03631ef52d194.zip meson-dffa7f35649185c1a8e096f9efa03631ef52d194.tar.gz meson-dffa7f35649185c1a8e096f9efa03631ef52d194.tar.bz2 |
Add tests for warnings in configure_file()
Add tests to run_unittests.py to assert warnings are printed and not
printed where appropriate.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index b3bc271..9a71937 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -2293,6 +2293,10 @@ recommended as it is not supported on some platforms''') self.assertRegex(out, "WARNING:.*'FOO_BAR'.*nosubst-nocopy2.txt.in.*not present.*") self.assertRegex(out, "WARNING:.*'empty'.*config.h.in.*not present.*") self.assertRegex(out, "WARNING:.*empty configuration_data.*test.py.in") + # Warnings for configuration files that are overwritten. + self.assertRegex(out, "WARNING:.*double_output.txt.*overwrites") + self.assertRegex(out, "WARNING:.*subdir/double_output2.txt.*overwrites") + self.assertNotRegex(out, "WARNING:.*no_write_conflict.txt.*overwrites") # No warnings about empty configuration data objects passed to files with substitutions self.assertNotRegex(out, "WARNING:.*empty configuration_data.*nosubst-nocopy1.txt.in") self.assertNotRegex(out, "WARNING:.*empty configuration_data.*nosubst-nocopy2.txt.in") |