From dc17e16897bb255d761d7ae296f6ae0cc189c07c Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Thu, 10 Dec 2015 13:17:11 +0100 Subject: [PATCH] signal: cleanup allocations / reset globals in test I conserve these cleanups to enable the looped execution of all test functions as I did to hunt a bug. The loop can easily be added to main(). --- repos/os/src/test/signal/main.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/repos/os/src/test/signal/main.cc b/repos/os/src/test/signal/main.cc index 5b11fcc338..260c5c4d7e 100644 --- a/repos/os/src/test/signal/main.cc +++ b/repos/os/src/test/signal/main.cc @@ -529,6 +529,9 @@ static void check_context_management() printf("destroy sender\n"); destroy(env()->heap(), sender); + + destroy(env()->heap(), context); + destroy(env()->heap(), rec); } @@ -596,6 +599,7 @@ static void synchronized_context_destruction_test() } signal_context_destroyer.join(); + signal_context_destroyed = false; }