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:
parent
726e6b3e5d
commit
a5d043443d
|
@ -610,7 +610,10 @@ static void many_managed_contexts()
|
||||||
|
|
||||||
for (unsigned i = 0; i < num_contexts; ++i) {
|
for (unsigned i = 0; i < num_contexts; ++i) {
|
||||||
Id_signal_context *context = new (env()->heap()) Id_signal_context(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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue