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,265
Issues
4,265
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
421
Merge Requests
421
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
786cf63d
Commit
786cf63d
authored
Mar 17, 2000
by
simonmar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2000-03-17 10:25:16 by simonmar]
Add test for interruptible ops.
parent
afb300f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
ghc/tests/concurrent/should_run/conc020.hs
ghc/tests/concurrent/should_run/conc020.hs
+10
-0
ghc/tests/concurrent/should_run/conc020.stderr
ghc/tests/concurrent/should_run/conc020.stderr
+2
-0
No files found.
ghc/tests/concurrent/should_run/conc020.hs
0 → 100644
View file @
786cf63d
import
Concurrent
import
Exception
main
=
do
m
<-
newEmptyMVar
t
<-
forkIO
(
blockAsyncExceptions
$
takeMVar
m
)
threadDelay
100000
raiseInThread
t
(
ErrorCall
"I'm Interruptible"
)
threadDelay
100000
putMVar
m
()
-- to avoid t being garbage collected
ghc/tests/concurrent/should_run/conc020.stderr
0 → 100644
View file @
786cf63d
Fail: I'm Interruptible
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