thread test: handle capability ref-count overflow
Triggered by the create-as-many-threads test as it tries to create as many threads as possible. Ref #2120
This commit is contained in:
parent
99f18a2fe6
commit
82443ddee6
|
@ -312,6 +312,8 @@ static void test_create_as_many_threads(Env &env)
|
||||||
throw "Thread_creation_failed";
|
throw "Thread_creation_failed";
|
||||||
} catch (Thread::Out_of_stack_space) {
|
} catch (Thread::Out_of_stack_space) {
|
||||||
throw "Out_of_stack_space";
|
throw "Out_of_stack_space";
|
||||||
|
} catch (Genode::Native_capability::Reference_count_overflow) {
|
||||||
|
throw "Native_capability::Reference_count_overflow";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (const char * ex) {
|
} catch (const char * ex) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user