Skip to content
Snippets Groups Projects
Commit 2d1629e5 authored by Petr Rockai's avatar Petr Rockai
Browse files

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
...@@ -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 */
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment