Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
process
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
process
Commits
1faaf041
Commit
1faaf041
authored
16 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
add the test from #3231
parent
840faadb
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/3231.hs
+22
-0
22 additions, 0 deletions
tests/3231.hs
tests/3231.stdout
+1
-0
1 addition, 0 deletions
tests/3231.stdout
tests/all.T
+1
-0
1 addition, 0 deletions
tests/all.T
with
24 additions
and
0 deletions
tests/3231.hs
0 → 100644
+
22
−
0
View file @
1faaf041
module
Main
()
where
import
Control.Concurrent
import
System.IO
import
System.Cmd
import
System.Directory
main
=
do
hSetBuffering
stdout
NoBuffering
forkIO
$
f
"foo1.txt"
forkIO
$
f
"foo2.txt"
threadDelay
$
2
*
1000000
putStrLn
"Finished successfully"
f
file
=
do
h
<-
openFile
file
WriteMode
hPutStrLn
h
"fjkladsf"
system
"sleep 1s"
-- putChar '.'
hClose
h
removeFile
file
f
file
This diff is collapsed.
Click to expand it.
tests/3231.stdout
0 → 100644
+
1
−
0
View file @
1faaf041
Finished successfully
This diff is collapsed.
Click to expand it.
tests/all.T
+
1
−
0
View file @
1faaf041
...
@@ -16,3 +16,4 @@ test('process006', normal, compile_and_run, [''])
...
@@ -16,3 +16,4 @@ test('process006', normal, compile_and_run, [''])
test
('
process007
',
[
extra_clean
(['
process007.tmp
']),
reqlib
('
unix
')],
compile_and_run
,
[''])
test
('
process007
',
[
extra_clean
(['
process007.tmp
']),
reqlib
('
unix
')],
compile_and_run
,
[''])
test
('
process008
',
normal
,
compile_and_run
,
[''])
test
('
process008
',
normal
,
compile_and_run
,
[''])
test
('
3231
',
only_ways
(['
normal
','
threaded1
','
threaded2
']),
compile_and_run
,
[''])
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment