aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-11-04 13:34:48 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2018-11-04 15:42:06 +0000
commitac6d4338cce68f5040825fb9bfb95dd147390e76 (patch)
tree6d265802853afaad998dacb5678d669216bdf869
parentd63a919e0e25d54485198d5c89ffebb1ae2d38a1 (diff)
downloadmeson-ac6d4338cce68f5040825fb9bfb95dd147390e76.zip
meson-ac6d4338cce68f5040825fb9bfb95dd147390e76.tar.gz
meson-ac6d4338cce68f5040825fb9bfb95dd147390e76.tar.bz2
Make use of get_argument_syntax() in another test case
-rwxr-xr-xrun_unittests.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 00bf504..8aa0425 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -3100,9 +3100,14 @@ 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')
+
+ env = get_fake_env(testdir, self.builddir, self.prefix)
+ cc = env.detect_c_compiler(False)
+ if cc.get_argument_syntax() != 'msvc':
+ raise unittest.SkipTest('Test only applies to MSVC-like compilers')
+
try:
self.init(testdir)
except subprocess.CalledProcessError: