mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 07:38:28 +00:00
committed by
Christian Helmuth
parent
6289a2379d
commit
54b47535f8
@ -134,9 +134,18 @@ static void test_out_of_metadata()
|
|||||||
enum { MAX_SUBJECT_IDS = 16 };
|
enum { MAX_SUBJECT_IDS = 16 };
|
||||||
Genode::Trace::Subject_id subject_ids[MAX_SUBJECT_IDS];
|
Genode::Trace::Subject_id subject_ids[MAX_SUBJECT_IDS];
|
||||||
|
|
||||||
|
try {
|
||||||
Genode::Trace::Connection trace(sizeof(subject_ids) + 4096, sizeof(subject_ids), 0);
|
Genode::Trace::Connection trace(sizeof(subject_ids) + 4096, sizeof(subject_ids), 0);
|
||||||
|
|
||||||
|
/* we should never arrive here */
|
||||||
|
struct Unexpectedly_got_no_exception{};
|
||||||
|
throw Unexpectedly_got_no_exception();
|
||||||
|
} catch (Genode::Parent::Service_denied) {
|
||||||
|
printf("got Genode::Parent::Service_denied exception as expected\n");
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Genode::Trace::Connection trace(sizeof(subject_ids) + 5*4096, sizeof(subject_ids), 0);
|
||||||
trace.subjects(subject_ids, MAX_SUBJECT_IDS);
|
trace.subjects(subject_ids, MAX_SUBJECT_IDS);
|
||||||
|
|
||||||
/* we should never arrive here */
|
/* we should never arrive here */
|
||||||
|
Reference in New Issue
Block a user