Index: src/tests/monitor.c
===================================================================
--- src/tests/monitor.c	(revision 3bb51e112144273d0beaa9cc3665fd5e23a42e4a)
+++ src/tests/monitor.c	(revision 51f3798005b3649fb4f041cf88dd42cc981f7f73)
@@ -16,7 +16,6 @@
 
 void increment( /*mutex*/ global_t * this ) {
-	enter( &this->m );
+	monitor_guard g = { &this->m };
 	this->value += 1;
-	leave( &this->m );
 }
 
