aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-03-29 20:56:52 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2017-04-02 00:07:23 +0300
commit1b81b32afbe516f9230393cd5706de692531e10c (patch)
treee1e3144610a9fa7e666d0bb6b536e7cafae2b7fd /run_unittests.py
parent553ac89e02c170b504c495e83164a7a9d15198f4 (diff)
downloadmeson-1b81b32afbe516f9230393cd5706de692531e10c.zip
meson-1b81b32afbe516f9230393cd5706de692531e10c.tar.gz
meson-1b81b32afbe516f9230393cd5706de692531e10c.tar.bz2
Add test for werror which is a boolean type.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 4d38b61..72c8457 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -1261,7 +1261,6 @@ class LinuxlikeTests(BasePlatformTests):
# The chown failed nonfatally if we're not root
self.assertEqual(0, statf.st_uid)
-
def test_cpp_std_override(self):
testdir = os.path.join(self.unit_test_dir, '6 std override')
self.init(testdir)
@@ -1280,6 +1279,9 @@ class LinuxlikeTests(BasePlatformTests):
self.assertNotIn('-std=c++03', c11_comp)
self.assertNotIn('-std=c++03', plain_comp)
self.assertNotIn('-std=c++11', plain_comp)
+ # Now werror
+ self.assertIn('-Werror', plain_comp)
+ self.assertNotIn('-Werror', c03_comp)
class RewriterTests(unittest.TestCase):