Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DIVINE
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
paradise
mirror
DIVINE
Commits
2d1629e5
There was an error fetching the commit references. Please try again later.
Commit
2d1629e5
authored
5 years ago
by
Petr Rockai
Browse files
Options
Downloads
Patches
Plain Diff
test: Fix a spurious failure in one of the dios monitor testcases.
parent
e37d313d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/dios/monitor/multiple-monitors-a.cpp
+9
-2
9 additions, 2 deletions
test/dios/monitor/multiple-monitors-a.cpp
with
9 additions
and
2 deletions
test/dios/monitor/multiple-monitors-a.cpp
+
9
−
2
View file @
2d1629e5
...
@@ -5,6 +5,12 @@
...
@@ -5,6 +5,12 @@
volatile
int
glob
;
volatile
int
glob
;
void
flag
(
const
char
*
msg
)
{
__vm_trace
(
_VM_T_Fault
,
msg
);
__vm_ctl_flag
(
0
,
_VM_CF_Error
);
}
bool
isZero
()
{
return
glob
==
0
;
}
bool
isZero
()
{
return
glob
==
0
;
}
struct
DummyMon
:
public
__dios
::
Monitor
struct
DummyMon
:
public
__dios
::
Monitor
...
@@ -14,9 +20,10 @@ struct DummyMon : public __dios::Monitor
...
@@ -14,9 +20,10 @@ struct DummyMon : public __dios::Monitor
struct
GlobMon
:
public
__dios
::
Monitor
struct
GlobMon
:
public
__dios
::
Monitor
{
{
void
step
()
{
void
step
()
{
if
(
!
isZero
()
)
if
(
!
isZero
()
)
__vm_ctl_flag
(
0
,
_VM_CF_Error
);
/* ERROR */
flag
(
"glob is not zero"
);
/* ERROR */
}
}
};
};
...
...
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