@@ -84,7 +84,7 @@ generateBuildModule flags pkg lbi = do
85 -- Actually we need to check whether testName suite == "doctests"
85 -- Actually we need to check whether testName suite == "doctests"
86 -- pending https://github.com/haskell/cabal/pull/4229 getting into GHC HEAD tree
86 -- pending https://github.com/haskell/cabal/pull/4229 getting into GHC HEAD tree
87− withTestLBI pkg lbi $ \suite suitecfg -> when (testName suite == "doctests") $ do
87+ withTestLBI pkg lbi $ \suite suitecfg -> when (testName suite == testName suite) $ do
89 -- get and create autogen dir
89 -- get and create autogen dir
90#if MIN_VERSION_Cabal(1,25,0)
90#if MIN_VERSION_Cabal(1,25,0)