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

Function RunFile

engine/crash/src/test/test_script_crash.cpp:96–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94};
95
96bool RunFile(lua_State* L, const char* filename)
97{
98 char path[DMPATH_MAX_PATH];
99 dmTestUtil::MakeHostPathf(path, sizeof(path), MOUNTFS PATH_FORMAT, filename);
100 if (luaL_dofile(L, path) != 0)
101 {
102 dmLogError("%s", lua_tolstring(L, -1, 0));
103 return false;
104 }
105 return true;
106}
107
108#if !defined(__NX__)
109TEST_F(ScriptCrashTest, TestCrash)

Callers 1

TEST_FFunction · 0.70

Calls 1

lua_tolstringFunction · 0.85

Tested by

no test coverage detected