aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-02-02 21:09:10 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-02-02 21:09:10 -0800
commite6c7fcc59856893a4947925f0dddc3a44b74a48a (patch)
tree04dc1b38567d0263e8844c6f91a065e5d3ab868d
parent6f79042502851a1ac50c5c462f4121a1c659b511 (diff)
downloadpandoc-e6c7fcc59856893a4947925f0dddc3a44b74a48a.tar.gz
Fixed some compiler warnings in tests.
-rw-r--r--test/Tests/Command.hs5
-rw-r--r--test/Tests/Helpers.hs3
-rw-r--r--test/Tests/Old.hs9
3 files changed, 3 insertions, 14 deletions
diff --git a/test/Tests/Command.hs b/test/Tests/Command.hs
index bbfa62dea..8118e9759 100644
--- a/test/Tests/Command.hs
+++ b/test/Tests/Command.hs
@@ -19,12 +19,11 @@ import Data.Algorithm.Diff
import System.Environment.Executable (getExecutablePath)
import qualified Data.ByteString as BS
import qualified Data.Text as T
-import Data.List (isSuffixOf, intercalate)
-import Data.Maybe (catMaybes)
+import Data.List (isSuffixOf)
import System.Directory
import qualified System.Environment as Env
import System.Exit
-import System.FilePath (joinPath, splitDirectories, takeDirectory, (</>))
+import System.FilePath (takeDirectory, (</>))
import System.IO (hPutStr, stderr)
import System.IO.Unsafe (unsafePerformIO)
import System.Process
diff --git a/test/Tests/Helpers.hs b/test/Tests/Helpers.hs
index a4a3c0af5..813c80adb 100644
--- a/test/Tests/Helpers.hs
+++ b/test/Tests/Helpers.hs
@@ -26,10 +26,7 @@ import Prelude
import Data.Algorithm.Diff
import qualified Data.Map as M
import Data.Text (Text, unpack)
-import System.Directory
-import System.Environment.Executable (getExecutablePath)
import System.Exit
-import System.FilePath
import Test.Tasty
import Test.Tasty.HUnit
import Text.Pandoc.Builder (Blocks, Inlines, doc, plain)
diff --git a/test/Tests/Old.hs b/test/Tests/Old.hs
index 528388c51..a031700a6 100644
--- a/test/Tests/Old.hs
+++ b/test/Tests/Old.hs
@@ -15,10 +15,8 @@ module Tests.Old (tests) where
import Prelude
import Data.Algorithm.Diff
-import Data.List (intercalate)
-import Data.Maybe (catMaybes)
import System.Exit
-import System.FilePath (joinPath, splitDirectories, (<.>), (</>))
+import System.FilePath ((<.>), (</>))
import qualified System.Environment as Env
import System.Environment.Executable (getExecutablePath)
import Text.Pandoc.Process (pipeProcess)
@@ -353,8 +351,3 @@ compareValues norm options expected actual = do
"\n--- " ++ norm ++
"\n+++ " ++ cmd ++ "\n" ++
showDiff (1,1) diff ++ dash
-
-findDynlibDir :: [FilePath] -> Maybe FilePath
-findDynlibDir [] = Nothing
-findDynlibDir ("build":xs) = Just $ joinPath (reverse xs) </> "build"
-findDynlibDir (_:xs) = findDynlibDir xs