From c70ce901623e61924bdc00bfff8c13a1d34b4562 Mon Sep 17 00:00:00 2001 From: Andreas Abel Date: Sat, 27 Feb 2021 14:45:58 +0100 Subject: [PATCH] Issue #294: deactivate test case with non-portable path This one doesn't fly under v2-cabal. --- test/MainSpec.hs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/test/MainSpec.hs b/test/MainSpec.hs index c1fccf81..c1273832 100644 --- a/test/MainSpec.hs +++ b/test/MainSpec.hs @@ -106,9 +106,18 @@ spec = do doctest "setup-skip-on-failure" ["Foo.hs"] (cases 3) {sTried = 1, sFailures = 1} - it "works with additional object files" $ do - doctest "with-cbits" ["Bar.hs", "../../../dist/build/spec/spec-tmp/test/integration/with-cbits/foo.o"] - (cases 1) + -- Andreas, 2021-02-27, see issue #294. + -- This test case contains a hard-wired path that does not work + -- with v2-cabal. + -- I tested it under v2-cabal with a very non-portable path. + -- Deactivating the test case until a systematic solution is found... + -- + -- it "works with additional object files" $ do + -- -- -- Path for v1-cabal: + -- -- doctest "with-cbits" ["Bar.hs", "../../../dist/build/spec/spec-tmp/test/integration/with-cbits/foo.o"] + -- -- -- Path for v2-cabal with ghc-9.0.1 + -- -- doctest "with-cbits" ["Bar.hs", "../../../dist-newstyle/build/x86_64-osx/ghc-9.0.1/doctest-0.19/t/spec/build/spec/spec-tmp/Test/integration/with-cbits/foo.o"] + -- (cases 1) it "ignores trailing whitespace when matching test output" $ do doctest "trailing-whitespace" ["Foo.hs"] @@ -175,4 +184,3 @@ spec = do it "doesn't get confused by doctests using System.IO imports" $ do doctest "system-io-imported" ["A.hs"] (cases 1) -