X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Funit-tests%2Ftest-mono-handle.c;h=95ebae349c29aa1cbd562a8642ec09a17299c5b1;hb=2ef81c56cd56491e6bb1396eca0f7bcf28751d0c;hp=3438039a4b0cb91900fa6e057be353b38b47e04b;hpb=69f207ee9e4f440e66e98bf5f685807f6527c39d;p=mono.git diff --git a/mono/unit-tests/test-mono-handle.c b/mono/unit-tests/test-mono-handle.c index 3438039a4b0..95ebae349c2 100644 --- a/mono/unit-tests/test-mono-handle.c +++ b/mono/unit-tests/test-mono-handle.c @@ -15,28 +15,8 @@ static void test2_arena_push_pop () { - MonoHandleArena *top = NULL; - - MonoHandleArena *new_arena1 = g_malloc0 (mono_handle_arena_size ()); - mono_handle_arena_stack_push (&top, new_arena1); - - MonoHandleArena *new_arena2 = g_malloc0 (mono_handle_arena_size ()); - - mono_handle_arena_stack_push (&top, new_arena2); - - g_assert (top == new_arena2); - - mono_handle_arena_stack_pop (&top, new_arena2); - - g_free (new_arena2); - - g_assert (top == new_arena1); - - mono_handle_arena_stack_pop (&top, new_arena1); - - g_assert (top == NULL); - - g_free (new_arena1); + HandleStack *h = mono_handle_stack_alloc (); + mono_handle_stack_free (h); }