Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
stm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue 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
stm
Commits
225162f7
Commit
225162f7
authored
1 year ago
by
Ben Gamari
Browse files
Options
Downloads
Patches
Plain Diff
testsuite: Reduce sensitivity to exception context
parent
e1ff4d40
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tests/all.T
+1
-2
1 addition, 2 deletions
tests/all.T
tests/stm056.hs
+4
-2
4 additions, 2 deletions
tests/stm056.hs
tests/stm056.stderr
+0
-1
0 additions, 1 deletion
tests/stm056.stderr
tests/stm056.stdout
+1
-0
1 addition, 0 deletions
tests/stm056.stdout
with
6 additions
and
5 deletions
tests/all.T
+
1
−
2
View file @
225162f7
...
...
@@ -6,8 +6,7 @@ test('stm050', [extra_run_opts('10000')], compile_and_run, ['-package stm'])
test
('
stm054
',
normal
,
compile_and_run
,
['
-package stm
'])
test
('
stm055
',
[
exit_code
(
1
),
js_broken
(
22576
)],
compile_and_run
,
['
-package stm
'])
test
('
stm056
',
only_ways
(['
threaded1
','
threaded2
']),
compile_and_run
,
['
-package stm
'])
test
('
stm056
',
only_ways
(['
threaded1
','
threaded2
']),
compile_and_run
,
['
-package stm
'])
test
('
stm061
',
normal
,
compile_and_run
,
['
-package stm
'])
test
('
T2411
',
ignore_stdout
,
compile_and_run
,
['
-package stm
'])
...
...
This diff is collapsed.
Click to expand it.
tests/stm056.hs
+
4
−
2
View file @
225162f7
...
...
@@ -11,8 +11,9 @@ inc tv = do
writeTVar
tv
(
v
+
1
)
bad
::
MVar
()
->
IO
()
bad
m
=
do
{
evaluate
(
1
`
quot
`
0
);
return
()
}
`
finally
`
putMVar
m
()
bad
m
=
handle
(
\
(
_
::
SomeException
)
->
putStrLn
"bad"
>>
putMVar
m
()
)
$
do
evaluate
(
1
`
quot
`
0
)
return
()
main
::
IO
()
main
=
do
...
...
@@ -22,3 +23,4 @@ main = do
forkOS
(
bad
m
)
takeMVar
m
threadDelay
100000
-- allow time for the exception to be printed
This diff is collapsed.
Click to expand it.
tests/stm056.stderr
deleted
100644 → 0
+
0
−
1
View file @
e1ff4d40
stm056: divide by zero
This diff is collapsed.
Click to expand it.
tests/stm056.stdout
0 → 100644
+
1
−
0
View file @
225162f7
bad
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