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/test_install.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/test_install.py')
-rwxr-xr-x | tests/test_install.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/test_install.py b/tests/test_install.py index 4fccc58..c6479c0 100755 --- a/tests/test_install.py +++ b/tests/test_install.py @@ -77,9 +77,6 @@ def test_success_old_style(): @pytest.mark.skipif( CXX_COMPILER_NAME == 'GNU' and CXX_COMPILER_VERSION.startswith('4.8'), reason = 'This compiles successfully in GCC 4.8.x, the deprecation warning is ignored.') -@pytest.mark.skipif( - CMAKE_BUILD_TYPE is not None and CMAKE_BUILD_TYPE in ('Release', 'RelWithDebInfo'), - reason = 'In release mode -Werror (/WX for Visual Studio) is not enabled, so the compilation in the test will generate a warning, not an error.') def test_old_style_deprecation_error(): source = ''' struct X { |