Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,323
Issues
4,323
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
385
Merge Requests
385
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
dd3837ab
Commit
dd3837ab
authored
Dec 17, 2015
by
Simon Marlow
Committed by
Simon Marlow
Dec 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests when run in parallel
parent
a6d664cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
testsuite/tests/ghc-api/annotations-literals/Makefile
testsuite/tests/ghc-api/annotations-literals/Makefile
+2
-2
testsuite/tests/ghc-api/annotations-literals/all.T
testsuite/tests/ghc-api/annotations-literals/all.T
+4
-2
testsuite/tests/ghc-api/annotations-literals/parsed.hs
testsuite/tests/ghc-api/annotations-literals/parsed.hs
+1
-1
No files found.
testsuite/tests/ghc-api/annotations-literals/Makefile
View file @
dd3837ab
...
...
@@ -6,12 +6,12 @@ clean:
rm
-f
*
.o
*
.hi
literals
:
rm
-f
literals.o literals.hi
rm
-f
literals.o literals.hi
LiteralsTest.o LiteralsTest.hi
'
$(TEST_HC)
'
$(TEST_HC_OPTS)
--make
-v0
-package
ghc literals
./literals
"
`
'
$(TEST_HC)
'
$(TEST_HC_OPTS)
--print-libdir
|
tr
-d
'\r'
`
"
parsed
:
rm
-f
parsed.o parsed.hi
rm
-f
parsed.o parsed.hi
LiteralsTest2.o LiteralsTest2.hi
'
$(TEST_HC)
'
$(TEST_HC_OPTS)
--make
-v0
-package
ghc parsed
./parsed
"
`
'
$(TEST_HC)
'
$(TEST_HC_OPTS)
--print-libdir
|
tr
-d
'\r'
`
"
...
...
testsuite/tests/ghc-api/annotations-literals/all.T
View file @
dd3837ab
test
('
literals
',
normal
,
run_command
,
['
$MAKE -s --no-print-directory literals
'])
test
('
parsed
',
normal
,
run_command
,
['
$MAKE -s --no-print-directory parsed
'])
\ No newline at end of file
test
('
literals
',
extra_clean
(['
LiteralsTest.o
',
'
LiteralsTest.hi
']),
run_command
,
['
$MAKE -s --no-print-directory literals
'])
test
('
parsed
',
extra_clean
(['
LiteralsTest2.o
',
'
LiteralsTest2.hi
']),
run_command
,
['
$MAKE -s --no-print-directory parsed
'])
testsuite/tests/ghc-api/annotations-literals/parsed.hs
View file @
dd3837ab
...
...
@@ -20,7 +20,7 @@ import Data.Dynamic ( fromDynamic,Dynamic )
main
::
IO
()
main
=
do
[
libdir
]
<-
getArgs
testOneFile
libdir
"LiteralsTest"
testOneFile
libdir
"LiteralsTest
2
"
testOneFile
libdir
fileName
=
do
p
<-
runGhc
(
Just
libdir
)
$
do
...
...
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