summaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py11
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