Check that the legacy support path works
| 52 | |
| 53 | //Check that the legacy support path works |
| 54 | TEST_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 |
| 67 | TEST_F(dmSysXDG, XDGSupportPath) |
nothing calls this directly
no test coverage detected