mirror of
https://projects.blender.org/blender/blender.git
synced 2025-01-22 15:32:15 -05:00
Fix (unreported) missing IDTypes init in lib_remapper tests.
This is usualy hidden it'd seem by the `WITH_TESTS_SINGLE_BINARY` option.
This commit is contained in:
parent
fcba8b8099
commit
fccdfa2b06
1 changed files with 11 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include "testing/testing.h"
|
||||
|
||||
#include "BKE_idtype.hh"
|
||||
#include "BKE_lib_remap.hh"
|
||||
|
||||
#include "BLI_string.h"
|
||||
|
@ -16,6 +17,8 @@ namespace blender::bke::id::tests {
|
|||
|
||||
TEST(lib_id_remapper, unavailable)
|
||||
{
|
||||
BKE_idtype_init();
|
||||
|
||||
ID id1;
|
||||
ID *idp = &id1;
|
||||
|
||||
|
@ -26,6 +29,8 @@ TEST(lib_id_remapper, unavailable)
|
|||
|
||||
TEST(lib_id_remapper, not_mappable)
|
||||
{
|
||||
BKE_idtype_init();
|
||||
|
||||
ID *idp = nullptr;
|
||||
|
||||
IDRemapper remapper;
|
||||
|
@ -35,6 +40,8 @@ TEST(lib_id_remapper, not_mappable)
|
|||
|
||||
TEST(lib_id_remapper, mapped)
|
||||
{
|
||||
BKE_idtype_init();
|
||||
|
||||
ID id1;
|
||||
ID id2;
|
||||
ID *idp = &id1;
|
||||
|
@ -50,6 +57,8 @@ TEST(lib_id_remapper, mapped)
|
|||
|
||||
TEST(lib_id_remapper, unassigned)
|
||||
{
|
||||
BKE_idtype_init();
|
||||
|
||||
ID id1;
|
||||
ID *idp = &id1;
|
||||
STRNCPY(id1.name, "OB2");
|
||||
|
@ -63,6 +72,8 @@ TEST(lib_id_remapper, unassigned)
|
|||
|
||||
TEST(lib_id_remapper, unassign_when_mapped_to_self)
|
||||
{
|
||||
BKE_idtype_init();
|
||||
|
||||
ID id_self;
|
||||
ID id1;
|
||||
ID id2;
|
||||
|
|
Loading…
Reference in a new issue