Skip to content

Commit 75a9bf4

Browse files
committed
CPP out the correct test
1 parent ec9853d commit 75a9bf4

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

testsuite/src/Stm064.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Control.Concurrent.STM
1313
import Control.Monad (unless)
1414

1515
main :: IO ()
16-
#if __GLASGOW_HASKELL__ >= 706
16+
#if __GLASGOW_HASKELL__ >= 706 && !defined(GHC_7_6_1)
1717
main = do
1818
x <- atomically $ do
1919
t <- newTVar (1 :: Integer)

testsuite/src/Stm065.hs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
1-
{-# LANGUAGE CPP #-}
2-
3-
{- NB: This one fails for GHC 7.6.1 in particular due to GHC#7493.
4-
5-
This was fixed in GHC via
6-
a006ecdfd381fa75ab16ddb66c3a2b247f359eb8
7-
-}
8-
91
module Stm065 (main) where
102

113
import Control.Concurrent.STM
124
import Control.Monad (unless)
135

146
main :: IO ()
15-
#if defined(GHC_7_6_1)
16-
main = putStrLn "Warning: test disabled for GHC 7.6.1"
17-
#else
187
main = do
198
x <- atomically $ do
209
r <- newTVar []
@@ -24,4 +13,3 @@ main = do
2413

2514
unless (null x) $ do
2615
fail (show x)
27-
#endif

0 commit comments

Comments
 (0)