MCPcopy Create free account
hub / github.com/defold/defold / RunFile

Function RunFile

engine/crash/src/test/test_script_crash_null.cpp:87–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85};
86
87bool RunFile(lua_State* L, const char* filename)
88{
89 char path[DMPATH_MAX_PATH];
90 dmTestUtil::MakeHostPathf(path, sizeof(path), MOUNTFS PATH_FORMAT, filename);
91 if (luaL_dofile(L, path) != 0)
92 {
93 dmLogError("%s", lua_tolstring(L, -1, 0));
94 return false;
95 }
96 return true;
97}
98
99TEST_F(ScriptCrashTest, TestCrashNull)
100{

Callers 1

TEST_FFunction · 0.70

Calls 1

lua_tolstringFunction · 0.85

Tested by

no test coverage detected