diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-10-23 21:17:37 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-10-24 13:41:04 +0300 |
commit | e43e9910905bf1b99f2a31e5224b3c0fbed12958 (patch) | |
tree | 50782dca850e4ea93da867ffc4d3f946ea92f8b1 /run_unittests.py | |
parent | 87355c81326edd253f433f08e8d58f9df059951f (diff) | |
download | meson-vs17test.tar.gz |
Move VS C++17 test to a unit test since it requires env setup.vs17test
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index 9e9ba040c..b94604077 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -3097,6 +3097,17 @@ class WindowsTests(BasePlatformTests): self.utime(os.path.join(testdir, 'res', 'resource.h')) self.assertRebuiltTarget('prog_1') + @unittest.skipIf(shutil.which('cl') is None, 'Test only applies to VS') + def test_msvc_cpp17(self): + testdir = os.path.join(self.unit_test_dir, '45 vscpp17') + try: + self.init(testdir) + except Exception as e: + fail_message = 'Value "c++17" for combo option "cpp_std" is not one of the choices.' + self.assertIn(fail_message, e.args[1]) + return + self.build() + class DarwinTests(BasePlatformTests): ''' Tests that should run on macOS |