test/moon: add missing 'Libc::with_libc()'

Fixes #2501
This commit is contained in:
Christian Prochaska 2017-08-20 16:39:35 +02:00 committed by Christian Helmuth
parent 90eaad6cc2
commit 1a3a302708

View File

@ -130,6 +130,7 @@ struct Moon::Main
Main(Libc::Env &env) : _env(env)
{
Libc::with_libc([&] () {
Moon::env = &_moon_env;
lua_State *lua = lua_open();
@ -144,6 +145,7 @@ struct Moon::Main
Genode::log(lua_tostring(lua, -1));
lua_close(lua);
});
}
};