mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
parent
6289a2379d
commit
54b47535f8
@ -134,9 +134,18 @@ static void test_out_of_metadata()
|
||||
enum { MAX_SUBJECT_IDS = 16 };
|
||||
Genode::Trace::Subject_id subject_ids[MAX_SUBJECT_IDS];
|
||||
|
||||
Genode::Trace::Connection trace(sizeof(subject_ids) + 4096, sizeof(subject_ids), 0);
|
||||
try {
|
||||
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 {
|
||||
Genode::Trace::Connection trace(sizeof(subject_ids) + 5*4096, sizeof(subject_ids), 0);
|
||||
trace.subjects(subject_ids, MAX_SUBJECT_IDS);
|
||||
|
||||
/* we should never arrive here */
|
||||
|
Loading…
x
Reference in New Issue
Block a user