Fix: Windows test failure after recent asset library path changes
Test was failing since efdda78175. The asset library path was now using
backslashes on Windows, and got compared to a path with forward slashes. Use
our higher level path comparison function to make sure they point to the same
directory.
This commit is contained in:
@@ -346,7 +346,9 @@ TEST_F(AssetLibraryServiceTest,
|
||||
AssetCatalogService &on_disk_catservice = on_disk_lib->catalog_service();
|
||||
|
||||
EXPECT_NE(on_disk_lib, runtime_lib);
|
||||
EXPECT_EQ(on_disk_lib->root_path(), asset_library_root_ + SEP);
|
||||
EXPECT_EQ(BLI_path_cmp_normalized(on_disk_lib->root_path().c_str(),
|
||||
(asset_library_root_ + SEP).c_str()),
|
||||
0);
|
||||
|
||||
/* Check if catalog was moved correctly. */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user