Ticket #4419: fix_cache_creation.patch
File fix_cache_creation.patch, 1.6 KB (added by , 7 years ago) |
---|
-
source/simulation2/components/tests/test_Pathfinder.h
37 37 g_VFS = CreateVfs(20 * MiB); 38 38 g_VFS->Mount(L"", DataDir()/"mods"/"mod", VFS_MOUNT_MUST_EXIST); 39 39 g_VFS->Mount(L"", DataDir()/"mods"/"public", VFS_MOUNT_MUST_EXIST, 1); // ignore directory-not-found errors 40 g_VFS->Mount(L"cache/", DataDir() / "cache");40 TS_ASSERT_OK(g_VFS->Mount(L"cache", DataDir()/"_testcache")); 41 41 42 42 CXeromyces::Startup(); 43 43 … … 52 52 delete &g_TexMan; 53 53 CXeromyces::Terminate(); 54 54 g_VFS.reset(); 55 DeleteDirectory(DataDir()/"_testcache"); 55 56 } 56 57 57 58 void test_namespace() -
source/simulation2/tests/test_Serializer.h
826 826 827 827 g_VFS = CreateVfs(20 * MiB); 828 828 TS_ASSERT_OK(g_VFS->Mount(L"", DataDir()/"mods"/"public", VFS_MOUNT_MUST_EXIST)); 829 TS_ASSERT_OK(g_VFS->Mount(L"cache /", DataDir()/"cache"));829 TS_ASSERT_OK(g_VFS->Mount(L"cache", DataDir()/"_testcache")); 830 830 831 831 // Need some stuff for terrain movement costs: 832 832 // (TODO: this ought to be independent of any graphics code) … … 879 879 // Shut down the world 880 880 delete &g_TexMan; 881 881 g_VFS.reset(); 882 DeleteDirectory(DataDir()/"_testcache"); 882 883 CXeromyces::Terminate(); 883 884 } 884 885