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:
Martin Stein 2016-11-14 15:38:17 +01:00 committed by Christian Helmuth
parent 99f18a2fe6
commit 82443ddee6
1 changed files with 2 additions and 0 deletions

View File

@ -312,6 +312,8 @@ static void test_create_as_many_threads(Env &env)
throw "Thread_creation_failed";
} catch (Thread::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) {