From a4964ed3f700bcf1a54a74674d23d01bed334dc2 Mon Sep 17 00:00:00 2001 From: "Boris D." Date: Mon, 9 Sep 2024 16:02:22 -0700 Subject: [PATCH] Disable some tests on unix. --- CoreFoundation/dune | 2 +- test/test_CoreFoundation/dune | 5 ++++- test/test_CoreGraphics/dune | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CoreFoundation/dune b/CoreFoundation/dune index 7e3f564c..6f5cb499 100644 --- a/CoreFoundation/dune +++ b/CoreFoundation/dune @@ -1,7 +1,7 @@ (library (name CoreFoundation) (public_name camlkit-base.CoreFoundation) - (flags :standard -ccopt "-framework CoreFoundation") +; (flags :standard -ccopt "-framework CoreFoundation") ; (foreign_stubs (language c) (names CoreFoundation_inlines)) (libraries camlkit-base.runtime)) diff --git a/test/test_CoreFoundation/dune b/test/test_CoreFoundation/dune index 709ab62b..fab572d6 100644 --- a/test/test_CoreFoundation/dune +++ b/test/test_CoreFoundation/dune @@ -1,7 +1,10 @@ (test (name test_CoreFoundation) (package camlkit-base) - (build_if (= %{context_name} "default")) + (build_if (and + (= %{system} macosx) + (= %{context_name} "default"))) + (flags :standard -ccopt "-framework CoreFoundation") (libraries camlkit-base.runtime camlkit-base.CoreFoundation diff --git a/test/test_CoreGraphics/dune b/test/test_CoreGraphics/dune index aac46f6a..718307d4 100644 --- a/test/test_CoreGraphics/dune +++ b/test/test_CoreGraphics/dune @@ -1,7 +1,10 @@ (test (name test_CoreGraphics) (package camlkit-gui) - (build_if (= %{context_name} "default")) + (build_if (and + (= %{system} macosx) + (= %{context_name} "default"))) + (flags :standard -ccopt "-framework CoreGraphics") (libraries camlkit-base.runtime camlkit-base.CoreFoundation