From 3f705ff898b35f13d41b1f7977cab033b0fc9d12 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Wed, 21 May 2025 21:17:27 +0200 Subject: [PATCH] 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. --- .../blender/asset_system/tests/asset_library_service_test.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blender/asset_system/tests/asset_library_service_test.cc b/source/blender/asset_system/tests/asset_library_service_test.cc index 152074b43fe..f2111573c73 100644 --- a/source/blender/asset_system/tests/asset_library_service_test.cc +++ b/source/blender/asset_system/tests/asset_library_service_test.cc @@ -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. */ {