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,310
Issues
4,310
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
382
Merge Requests
382
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
12850c11
Commit
12850c11
authored
Sep 06, 2011
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some more written-but-not-cleaned files
parent
877dc99e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
testsuite/tests/ffi/should_run/all.T
testsuite/tests/ffi/should_run/all.T
+4
-1
testsuite/tests/lib/IO/4808.hs
testsuite/tests/lib/IO/4808.hs
+4
-3
testsuite/tests/lib/IO/4808.stderr
testsuite/tests/lib/IO/4808.stderr
+1
-1
testsuite/tests/lib/IO/all.T
testsuite/tests/lib/IO/all.T
+1
-1
No files found.
testsuite/tests/ffi/should_run/all.T
View file @
12850c11
...
...
@@ -136,7 +136,10 @@ test('2276_ghci', [ only_ways(['ghci']),
test
('
2469
',
normal
,
compile_and_run
,
['
-optc-std=gnu99
'])
test
('
2594
',
omit_ways
(['
ghci
']),
compile_and_run
,
['
2594_c.c
'])
test
('
2594
',
[
extra_clean
(['
2594_c.o
']),
omit_ways
(['
ghci
'])],
compile_and_run
,
['
2594_c.c
'])
test
('
fptr01
',
[
omit_ways
(['
ghci
']),
extra_clean
(['
fptr01_c.o
'])
],
compile_and_run
,
['
fptr01_c.c
'])
...
...
testsuite/tests/lib/IO/4808.hs
View file @
12850c11
...
...
@@ -3,10 +3,11 @@ import GHC.IO.Handle
import
GHC.IO.FD
as
FD
main
=
do
(
fd
,
_
)
<-
FD
.
openFile
"4808.hs"
ReadWriteMode
False
hdl
<-
mkDuplexHandle
fd
"4808.hs"
Nothing
nativeNewlineMode
writeFile
"4808.test"
"This is some test data"
(
fd
,
_
)
<-
FD
.
openFile
"4808.test"
ReadWriteMode
False
hdl
<-
mkDuplexHandle
fd
"4808.test"
Nothing
nativeNewlineMode
hClose
hdl
(
fd2
,
_
)
<-
FD
.
openFile
"4808.
hs
"
ReadWriteMode
False
(
fd2
,
_
)
<-
FD
.
openFile
"4808.
test
"
ReadWriteMode
False
print
(
fdFD
fd
==
fdFD
fd2
)
-- should be True
hGetLine
hdl
>>=
print
-- should fail with an exception
testsuite/tests/lib/IO/4808.stderr
View file @
12850c11
4808: 4808.
hs
: hGetLine: illegal operation (handle is closed)
4808: 4808.
test
: hGetLine: illegal operation (handle is closed)
testsuite/tests/lib/IO/all.T
View file @
12850c11
...
...
@@ -152,5 +152,5 @@ test('T4144', normal, compile_and_run, [''])
test
('
encodingerror001
',
normal
,
compile_and_run
,
[''])
test
('
4808
',
exit_code
(
1
)
,
compile_and_run
,
[''])
test
('
4808
',
[
exit_code
(
1
),
extra_clean
(['
4808.test
'])]
,
compile_and_run
,
[''])
test
('
4895
',
normal
,
compile_and_run
,
[''])
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