Fix failure in recently added asset library tests

Mistake in 1efc94bb2f.
This commit is contained in:
Julian Eisel 2022-11-09 22:50:18 +01:00
parent 1cdc6381cf
commit 95077549c1
1 changed files with 2 additions and 1 deletions

View File

@ -118,7 +118,8 @@ TEST_F(AssetLibraryServiceTest, library_from_reference)
"the current file library";
Main dummy_main{};
BLI_strncpy(dummy_main.filepath, asset_library_root_.c_str(), sizeof(dummy_main.filepath));
std::string dummy_filepath = asset_library_root_ + SEP + "dummy.blend";
BLI_strncpy(dummy_main.filepath, dummy_filepath.c_str(), sizeof(dummy_main.filepath));
EXPECT_EQ(lib, service->get_asset_library(&dummy_main, ref))
<< "Getting the local (current file) reference with a main saved on disk should return "
"the an asset library for this directory";