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,261
Issues
4,261
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
a9743eb7
Commit
a9743eb7
authored
Oct 29, 2019
by
Ben Gamari
🐢
Committed by
Marge Bot
Oct 31, 2019
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testsuite: Add test for
#17414
parent
97b6f7a3
Pipeline
#12026
passed with stages
in 442 minutes and 15 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
libraries/base/tests/IO/T17414.hs
libraries/base/tests/IO/T17414.hs
+18
-0
libraries/base/tests/IO/all.T
libraries/base/tests/IO/all.T
+2
-0
No files found.
libraries/base/tests/IO/T17414.hs
0 → 100644
View file @
a9743eb7
{-# LANGUAGE ScopedTypeVariables #-}
import
Foreign.Ptr
(
Ptr
)
import
Foreign.Marshal.Alloc
(
mallocBytes
,
free
)
import
System.IO
(
hPutBuf
,
withBinaryFile
,
IOMode
(
WriteMode
))
-- more than 2GiB
numBytes
::
Int
numBytes
=
2264375889
main
::
IO
()
main
=
do
(
ptr
::
Ptr
()
)
<-
mallocBytes
numBytes
-- the next line produces the exception on macOS
withBinaryFile
"test.out"
WriteMode
(
\
h
->
hPutBuf
h
ptr
numBytes
)
free
ptr
-- Truncate file in case it doesn't get deleted
writeFile
"test.out"
""
libraries/base/tests/IO/all.T
View file @
a9743eb7
...
...
@@ -132,3 +132,5 @@ test('encodingerror001', normal, compile_and_run, [''])
test
('
T4808
',
[
fragile_for
(
16909
,
['
threaded2
']),
exit_code
(
1
)],
compile_and_run
,
[''])
test
('
T4895
',
normal
,
compile_and_run
,
[''])
test
('
T7853
',
normal
,
compile_and_run
,
[''])
# Tests ability to perform >32-bit IO operations
test
('
T17414
',
[
when
(
wordsize
(
32
),
skip
),
high_memory_usage
],
compile_and_run
,
[''])
Marge Bot
💬
@marge-bot
mentioned in merge request
!2039 (closed)
·
Oct 31, 2019
mentioned in merge request
!2039 (closed)
mentioned in merge request !2039
Toggle commit list
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