Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
curry-packages
currycheck
Commits
add5179d
Commit
add5179d
authored
Aug 24, 2018
by
Michael Hanus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix in cleanup code
parent
dc59ea45
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
src/CurryCheck.curry
src/CurryCheck.curry
+9
-8
No files found.
src/CurryCheck.curry
View file @
add5179d
...
...
@@ -14,7 +14,7 @@
--- (together with possible preconditions).
---
--- @author Michael Hanus, Jan-Patrick Baye
--- @version
June
2018
--- @version
August
2018
-------------------------------------------------------------------------
import AnsiCodes
...
...
@@ -56,7 +56,7 @@ ccBanner :: String
ccBanner = unlines [bannerLine,bannerText,bannerLine]
where
bannerText = "CurryCheck: a tool for testing Curry programs (Version " ++
packageVersion ++ " of
08
/0
6
/2018)"
packageVersion ++ " of
24
/0
8
/2018)"
bannerLine = take (length bannerText) (repeat '-')
-- Help text
...
...
@@ -1284,12 +1284,13 @@ cleanup opts mainmod modules =
removeCurryModule mainmod
mapIO_ removeCurryModule (map testModuleName modules)
where
removeCurryModule modname =
do
(_,srcfilename) <-
lookupModuleSourceInLoadPath modname >>=
return .
maybe (error $ "Source file of module '"++modname++"' not found!") id
removeCurryModule modname =
lookupModuleSourceInLoadPath modname >>=
maybe done
(\ (_,srcfilename) -> do
system $ installDir </> "bin" </> "cleancurry" ++ " " ++ modname
system $ "rm -f " ++ srcfilename
done )
-- Show some statistics about number of tests:
showTestStatistics :: Options -> [Test] -> String
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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