Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
c3a0557f
Commit
c3a0557f
authored
Mar 30, 2011
by
basvandijk
Browse files
Allow Cabal to be build on ghc-6.8
parent
b1ae6a1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Distribution/Simple/Test.hs
View file @
c3a0557f
...
...
@@ -84,7 +84,7 @@ import System.Directory
(
createDirectoryIfMissing
,
doesFileExist
,
getCurrentDirectory
,
removeFile
,
getDirectoryContents
)
import
System.Environment
(
getEnvironment
)
import
System.Exit
(
ExitCode
(
..
),
exitFailure
,
exitSuccess
,
exitWith
)
import
System.Exit
(
ExitCode
(
..
),
exitFailure
,
exitWith
)
import
System.FilePath
(
(
</>
),
(
<.>
)
)
import
System.IO
(
hClose
,
IOMode
(
..
),
openFile
)
import
System.Process
(
runProcess
,
waitForProcess
)
...
...
@@ -306,7 +306,7 @@ test pkg_descr lbi flags = do
when
(
not
$
PD
.
hasTests
pkg_descr
)
$
do
notice
verbosity
"Package has no test suites."
exitSuccess
exit
With
Exit
Success
when
(
PD
.
hasTests
pkg_descr
&&
null
enabledTests
)
$
die
$
"No test suites enabled. Did you remember to configure with "
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment