49 testing::Test::SetUpTestCase();
71 G.factory_startup =
true;
75 ASSERT_EQ(
G.main->wm.first,
nullptr);
81 if (
G.main->wm.first !=
nullptr) {
83 G.main->wm.first =
nullptr;
102 testing::Test::TearDownTestCase();
111 testing::Test::TearDown();
116 const std::string &test_assets_dir = blender::tests::flags_test_asset_dir();
117 if (test_assets_dir.empty()) {
122 BLI_path_join(abspath,
sizeof(abspath), test_assets_dir.c_str(), filepath);
126 if (
bfile ==
nullptr) {
127 ADD_FAILURE() <<
"Unable to load file '" << filepath <<
"' from test assets dir '"
128 << test_assets_dir <<
"'";
143 if (
bfile ==
nullptr) {
void BKE_tempdir_session_purge()
void BKE_blender_atexit()
void BKE_blender_globals_init()
void BKE_callback_global_init()
void BKE_view_layer_synced_ensure(const Scene *scene, ViewLayer *view_layer)
void BKE_mball_cubeTable_free()
void BKE_scene_graph_update_tagged(Depsgraph *depsgraph, Main *bmain)
void BKE_vfont_builtin_register(const void *mem, int size)
#define LISTBASE_FOREACH(type, var, list)
#define BLI_path_join(...)
void BLI_threadapi_init(void)
void BLI_threadapi_exit(void)
external readfile function prototypes.
BlendFileData * BLO_read_from_file(const char *filepath, eBLOReadSkip skip_flags, BlendFileReadReport *reports)
void BLO_blendfiledata_free(BlendFileData *bfd)
void DEG_free_node_types()
Depsgraph * DEG_graph_new(Main *bmain, Scene *scene, ViewLayer *view_layer, eEvaluationMode mode)
void DEG_register_node_types()
void DEG_graph_free(Depsgraph *graph)
void DEG_graph_build_from_view_layer(Depsgraph *graph)
blenloader genfile private function prototypes
void DNA_sdna_current_free(void)
void DNA_sdna_current_init(void)
const char datatoc_bfont_pfb[]
int datatoc_bfont_pfb_size
Read Guarded memory(de)allocation.
virtual void depsgraph_create(eEvaluationMode depsgraph_evaluation_mode)
static void SetUpTestCase()
bool blendfile_load(const char *filepath)
virtual void depsgraph_free()
static void TearDownTestCase()
struct Depsgraph * depsgraph
struct BlendFileData * bfile
void MEM_freeN(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
ViewLayer * cur_view_layer