@@ -145,7 +145,7 @@ replPkg copts fp = do
145 case mergeOptions copts (idris_opts pkgdesc) of
145 case mergeOptions copts (idris_opts pkgdesc) of
146 Left emsg -> ifail emsg
146 Left emsg -> ifail emsg
147 Right opts -> do
147 Right opts -> do
149 putIState orig
149 putIState orig
150 dir <- runIO getCurrentDirectory
150 dir <- runIO getCurrentDirectory
151 runIO $ setCurrentDirectory $ dir </> sourcedir pkgdesc
151 runIO $ setCurrentDirectory $ dir </> sourcedir pkgdesc
@@ -266,7 +266,8 @@ testPkg copts fp = do
266 exitWith (ExitFailure 1)
266 exitWith (ExitFailure 1)
267 Right opts -> do
267 Right opts -> do
268 m_ist <- idris opts
268 m_ist <- idris opts
269+ let texe = if isWindows then addExtension tmpn' ".exe" else tmpn'
269− exitCode <- rawSystem tmpn' []
270+ exitCode <- rawSystem texe []
270 return (m_ist, exitCode)
271 return (m_ist, exitCode)
271 case m_ist of
272 case m_ist of
272 Nothing -> exitWith (ExitFailure 1)
273 Nothing -> exitWith (ExitFailure 1)