diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-07-19 01:17:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-19 01:17:34 +0300 |
commit | f390a0a2f39a952422bb8f6d4760b1a576e6d0b9 (patch) | |
tree | ca1e337b9f4135f078b93fbd855516a4b0eccf27 /run_unittests.py | |
parent | b4c635a2e85a92bd0c3dd69c2d70612d09158bbd (diff) | |
parent | 0f15d7982cf0bbed9bb6845d4d4784a5754594ed (diff) | |
download | meson-f390a0a2f39a952422bb8f6d4760b1a576e6d0b9.zip meson-f390a0a2f39a952422bb8f6d4760b1a576e6d0b9.tar.gz meson-f390a0a2f39a952422bb8f6d4760b1a576e6d0b9.tar.bz2 |
Merge pull request #3814 from behlec/configure-file-output
Check if calls to configure_file write to the same output file.
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 f4e95a3..dd109aa 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -2413,6 +2413,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") |