Enable test_1767 on Windows for CMake builds
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Tue, 11 Aug 2020 15:46:46 +0000 (17:46 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Tue, 18 Aug 2020 09:46:31 +0000 (11:46 +0200)
The test is still skipped for MSBuild builds because of
https://gitlab.com/graphviz/graphviz/-/issues/1777

rtest/test_regression.py

index b6d466f72d1376c0b34c082edad4ac20ffb20cab..8c331b1d2328ffea304741eab4058cbaf812cb47 100644 (file)
@@ -255,11 +255,10 @@ def test_1767():
     https://gitlab.com/graphviz/graphviz/-/issues/1767
     '''
 
-    # FIXME: some of the Windows CI builds don't install libcgraph that this
-    # test depends on. Others fail the execution of the compiled binary for
-    # unknown reasons.
-    if platform.system() == 'Windows':
-      pytest.skip('test disabled on Windows')
+    # FIXME: Remove skip when
+    # https://gitlab.com/graphviz/graphviz/-/issues/1777 is fixed
+    if os.getenv('build_system') == 'msbuild':
+      pytest.skip('Windows MSBuild release does not contain any header files (#1777)')
 
     # find co-located test source
     c_src = os.path.abspath(os.path.join(os.path.dirname(__file__), '1767.c'))