diff options
author | Marco Poletti <poletti.marco@gmail.com> | 2017-07-02 18:49:46 +0100 |
---|---|---|
committer | Marco Poletti <poletti.marco@gmail.com> | 2017-07-02 18:50:04 +0100 |
commit | ec8b01ff0ff933c1ba99994670870ba81d7036d2 (patch) | |
tree | 04012c631c2bd188256e6c709b87f75661b7920f /tests/fruit_test_common.py | |
parent | 03d9c9f6780b67d6d24c6b3d631ec3822bf02655 (diff) | |
download | google-fruit-ec8b01ff0ff933c1ba99994670870ba81d7036d2.tar.gz |
Run tests with -Werror (/WX for Visual Studio), even in release mode. Before this change, we weren't able to test that the deprecation warnings are emitted when they should be (unless compiling in debug mode).
Diffstat (limited to 'tests/fruit_test_common.py')
-rw-r--r-- | tests/fruit_test_common.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/fruit_test_common.py b/tests/fruit_test_common.py index fbabbe2..9cdfc85 100644 --- a/tests/fruit_test_common.py +++ b/tests/fruit_test_common.py @@ -117,7 +117,7 @@ class PosixCompiler: args = ( FRUIT_COMPILE_FLAGS.split() + include_flags - + ['-g0'] + + ['-g0', '-Werror'] + args ) run_command(self.executable, args) @@ -153,6 +153,7 @@ class MsvcCompiler: args = ( FRUIT_COMPILE_FLAGS.split() + include_flags + + ['/WX'] + args ) run_command(self.executable, args) |