From 91a343f586281f9d9373e8e57a87ce17078fef33 Mon Sep 17 00:00:00 2001
From: Mikolaj Konarski <mikolaj@well-typed.com>
Date: Thu, 4 Aug 2022 02:02:23 +0200
Subject: [PATCH] Turn off T3827 for Linux and OSX due to heisenbugs not caused
 by cabal (#8338)

* Turn off T3827 for new GHCs due to heisenbugs not caused by cabal

* Disable the test totally on Linux until we stop taking GHC from GHA

See https://github.com/haskell/cabal/issues/8032#issuecomment-1204113187

* It failed on OSX now, so let's disable it everywhere except on Windows

Who would have thought.
---
 cabal-testsuite/PackageTests/NewBuild/T3827/cabal.test.hs | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/cabal-testsuite/PackageTests/NewBuild/T3827/cabal.test.hs b/cabal-testsuite/PackageTests/NewBuild/T3827/cabal.test.hs
index f89a4fe4d9..f418538b07 100644
--- a/cabal-testsuite/PackageTests/NewBuild/T3827/cabal.test.hs
+++ b/cabal-testsuite/PackageTests/NewBuild/T3827/cabal.test.hs
@@ -1,8 +1,6 @@
 import Test.Cabal.Prelude
 main = cabalTest $ do
   linux <- isLinux
-  missesProfilingLinux <- isGhcVersion ">= 9.0.2"
   osx <- isOSX
-  missesProfilingOsx <- isGhcVersion ">= 8.10.7"
-  expectBrokenIf (linux && missesProfilingLinux || osx && missesProfilingOsx) 8032 $
-    cabal "v2-build" ["exe:q"]
+  skipIf "8032 heisenbug profiling" (linux || osx)
+  cabal "v2-build" ["exe:q"]
-- 
GitLab