aboutsummaryrefslogtreecommitdiff
path: root/core/test/run-mem_region_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/test/run-mem_region_init.c')
-rw-r--r--core/test/run-mem_region_init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/test/run-mem_region_init.c b/core/test/run-mem_region_init.c
index 7624057..7ab23d2 100644
--- a/core/test/run-mem_region_init.c
+++ b/core/test/run-mem_region_init.c
@@ -75,6 +75,11 @@ void unlock(struct lock *l)
l->lock_val = 0;
}
+bool lock_held_by_me(struct lock *l)
+{
+ return l->lock_val;
+}
+
/* We actually need a lot of room for the bitmaps! */
#define TEST_HEAP_ORDER 27
#define TEST_HEAP_SIZE (1ULL << TEST_HEAP_ORDER)