# # # patch "tester.cc" # from [7fe90943a259cca21bd0a50293a561b05af97be5] # to [3537152d89acd809d1286d38e2a208c4b023c062] # ============================================================ --- tester.cc 7fe90943a259cca21bd0a50293a561b05af97be5 +++ tester.cc 3537152d89acd809d1286d38e2a208c4b023c062 @@ -249,7 +249,7 @@ LUAEXT(posix_umask, ) int oldmask = do_umask((a*8 + b)*8 + c); if (oldmask == -1) { - lua_pushnil(L); + lua_pushinteger(L, 0); return 1; } else @@ -599,8 +599,9 @@ int test_invoker::operator()(std::string retcode = luaL_checkinteger(st, -1); lua_remove(st, -1); } - catch (...) + catch (std::exception & e) { + E(false, F("test %s: %s") % testname % e.what()); retcode = 124; } return retcode;