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

Function TEST_F

engine/dlib/src/test/test_xdg.cpp:54–64  ·  view source on GitHub ↗

Check that the legacy support path works

Source from the content-addressed store, hash-verified

52
53//Check that the legacy support path works
54TEST_F(dmSysXDG, LegacySupportPath)
55{
56 char path[128];
57 char legacy[128];
58 dmTestUtil::MakeHostPath(legacy, sizeof(legacy), "testdir/.Defold");
59 dmSys::Mkdir(legacy, 0777);
60
61 dmSys::Result result = dmSys::GetApplicationSupportPath(DMSYS_APPLICATION_NAME, path, sizeof(path));
62 ASSERT_EQ(dmSys::RESULT_OK, result);
63 ASSERT_STREQ(legacy, path);
64}
65
66//Check that XDG support works
67TEST_F(dmSysXDG, XDGSupportPath)

Callers

nothing calls this directly

Calls 3

MakeHostPathFunction · 0.85
MkdirFunction · 0.50

Tested by

no test coverage detected