Skip to content

Commit 97aefa4

Browse files
committed
Ignore failing cabal-fmt test on windows
1 parent c2ef089 commit 97aefa4

File tree

1 file changed

+5
-4
lines changed
  • plugins/hls-cabal-fmt-plugin/test

1 file changed

+5
-4
lines changed

plugins/hls-cabal-fmt-plugin/test/Main.hs

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{-# LANGUAGE CPP #-}
22
{-# LANGUAGE OverloadedStrings #-}
3-
{-# LANGUAGE CPP #-}
43
module Main
54
( main
65
) where
76

87
import qualified Ide.Plugin.CabalFmt as CabalFmt
9-
import System.Directory (findExecutable)
8+
import System.Directory (findExecutable)
109
import System.FilePath
1110
import Test.Hls
1211

@@ -36,10 +35,12 @@ cabalFmtPlugin = CabalFmt.descriptor mempty "cabal-fmt"
3635

3736
tests :: CabalFmtFound -> TestTree
3837
tests found = testGroup "cabal-fmt"
39-
[ cabalFmtGolden found "formats a simple document" "simple_testdata" "formatted_document" $ \doc -> do
38+
[ knownBrokenOnWindows "Eats newlines between comments" $
39+
cabalFmtGolden found "formats a simple document" "simple_testdata" "formatted_document" $ \doc -> do
4040
formatDoc doc (FormattingOptions 2 True Nothing Nothing Nothing)
4141

42-
, cabalFmtGolden found "formats a document with expand:src comment" "commented_testdata" "formatted_document" $ \doc -> do
42+
, knownBrokenOnWindows "expand:src comment bug in cabal-fmt on windows" $
43+
cabalFmtGolden found "formats a document with expand:src comment" "commented_testdata" "formatted_document" $ \doc -> do
4344
formatDoc doc (FormattingOptions 2 True Nothing Nothing Nothing)
4445

4546
, cabalFmtGolden found "formats a document with lib information" "lib_testdata" "formatted_document" $ \doc -> do

0 commit comments

Comments
 (0)