summaryrefslogtreecommitdiffstats
path: root/test/gtest_nc_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/gtest_nc_test.py')
-rwxr-xr-xtest/gtest_nc_test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/gtest_nc_test.py b/test/gtest_nc_test.py
index 6e77d70..06ffb3f 100755
--- a/test/gtest_nc_test.py
+++ b/test/gtest_nc_test.py
@@ -38,6 +38,11 @@ import sys
import unittest
+IS_LINUX = os.name == 'posix' and os.uname()[0] == 'Linux'
+if not IS_LINUX:
+ sys.exit(0) # Negative compilation tests are not supported on Windows & Mac.
+
+
class GTestNCTest(unittest.TestCase):
"""Negative compilation test for Google Test."""