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,264
Issues
4,264
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
419
Merge Requests
419
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
34b9c1cf
Commit
34b9c1cf
authored
Jan 09, 2009
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rn.prog006 on Windows
parent
2ddc5df4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
testsuite/tests/ghc-regress/rename/prog006/Makefile
testsuite/tests/ghc-regress/rename/prog006/Makefile
+2
-1
testsuite/tests/ghc-regress/rename/prog006/all.T
testsuite/tests/ghc-regress/rename/prog006/all.T
+3
-1
testsuite/tests/ghc-regress/rename/prog006/pwd.hs
testsuite/tests/ghc-regress/rename/prog006/pwd.hs
+12
-0
No files found.
testsuite/tests/ghc-regress/rename/prog006/Makefile
View file @
34b9c1cf
...
...
@@ -16,8 +16,9 @@ include $(TOP)/mk/test.mk
# using the supplied Cabal configuration.
rn.prog006
:
$(TEST_HC)
--make
pwd
-v0
$(TEST_HC)
--make
-package-name
test-1.0 B.C
-fforce-recomp
-v0
sed
"s@__IMPORT__@
$(
abspath
.
)
@"
<pkg.conf.in
>
pkg.conf
sed
"s@__IMPORT__@
`
./pwd
`
@"
<pkg.conf.in
>
pkg.conf
$(TEST_HC)
-c
-package-conf
pkg.conf
-package
test
-fforce-recomp
A.hs
-i
# The -i clears the search path, so A.hs will find B.C from package test
#
...
...
testsuite/tests/ghc-regress/rename/prog006/all.T
View file @
34b9c1cf
test
('
rn.prog006
',
extra_clean
(['
A.hi
',
'
A.o
',
'
B/C.hi
',
'
B/C.o
',
'
Main.hi
',
'
Main.o
',
'
pkg.conf
']),
'
Main.hi
',
'
Main.o
',
'
pkg.conf
',
'
pwd
',
'
pwd.exe
',
'
pwd.exe.manifest
',
'
pwd.hi
',
'
pwd.o
']),
run_command
,
['
$MAKE -s --no-print-directory rn.prog006
'])
testsuite/tests/ghc-regress/rename/prog006/pwd.hs
0 → 100644
View file @
34b9c1cf
module
Main
where
import
System.Directory
import
System.Environment
main
::
IO
()
main
=
do
d
<-
getCurrentDirectory
putStr
$
concatMap
f
d
where
f
'
\\
'
=
"/"
f
c
=
[
c
]
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