run/signal: abort "many contexts" if manage fails

Previously, in the manage-many-contexts test we didn't test wether the manage
operations succeed.

Ref #1433
This commit is contained in:
Martin Stein 2015-03-05 13:00:08 +01:00 committed by Christian Helmuth
parent 726e6b3e5d
commit a5d043443d
1 changed files with 4 additions and 1 deletions

View File

@ -610,7 +610,10 @@ static void many_managed_contexts()
for (unsigned i = 0; i < num_contexts; ++i) {
Id_signal_context *context = new (env()->heap()) Id_signal_context(i);
rec.manage(context);
if (!rec.manage(context).valid()) {
PERR("failed to manage signal context");
sleep_forever();
}
}
}