mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-17 22:58:26 +00:00
linux: fix lx_rmap test to not stuck
The test did not fail actually. It just behaved strangely and got stuck in the good case, which is fixed now. Fixes #1121.
This commit is contained in:
@ -67,6 +67,7 @@ int main()
|
||||
PLOG("before RAM dataspace attach");
|
||||
env()->rm_session()->attach_at(ds, beg);
|
||||
PERR("after RAM dataspace attach -- ERROR");
|
||||
sleep_forever();
|
||||
} catch (Rm_session::Region_conflict) {
|
||||
PLOG("OK caught Region_conflict exception");
|
||||
}
|
||||
@ -79,6 +80,7 @@ int main()
|
||||
PLOG("before sub-RM dataspace attach");
|
||||
env()->rm_session()->attach_at(ds, beg);
|
||||
PERR("after sub-RM dataspace attach -- ERROR");
|
||||
sleep_forever();
|
||||
} catch (Rm_session::Region_conflict) {
|
||||
PLOG("OK caught Region_conflict exception");
|
||||
}
|
||||
@ -98,8 +100,7 @@ int main()
|
||||
*addr = 0x55;
|
||||
PLOG("after touch (%x/%x)", val, *addr);
|
||||
} catch (Rm_session::Region_conflict) {
|
||||
PLOG("OK caught Region_conflict exception -- ERROR");
|
||||
PERR("Caught Region_conflict exception -- ERROR");
|
||||
sleep_forever();
|
||||
}
|
||||
|
||||
sleep_forever();
|
||||
}
|
||||
|
Reference in New Issue
Block a user