Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
a7f31644
Commit
a7f31644
authored
Aug 10, 2005
by
simonmar
Browse files
[project @ 2005-08-10 10:07:39 by simonmar]
test queryFdOption
parent
414eaa73
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/lib/Posix/all.T
View file @
a7f31644
...
...
@@ -9,3 +9,5 @@ test('signals002', compose(only_compiler_types(['ghc']), conf),
test
('
fileexist01
',
conf
,
compile_and_run
,
['
-package unix
'])
test
('
forkprocess01
',
compose
(
only_compiler_types
(['
ghc
']),
conf
),
compile_and_run
,
['
-package unix
'])
test
('
queryfdoption01
',
compose
(
only_compiler_types
(['
ghc
']),
conf
),
compile_and_run
,
['
-package unix
'])
testsuite/tests/ghc-regress/lib/Posix/queryfdoption01.hs
0 → 100644
View file @
a7f31644
import
System.Posix.IO
import
System.IO
showNBR
=
do
v
<-
System
.
Posix
.
IO
.
queryFdOption
0
System
.
Posix
.
IO
.
NonBlockingRead
putStr
$
"NonBlockingRead = "
++
(
show
v
)
++
"
\n
"
main
=
do
showNBR
System
.
Posix
.
IO
.
setFdOption
0
System
.
Posix
.
IO
.
NonBlockingRead
True
showNBR
Write
Preview
Supports
Markdown
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