55 testing::Test::SetUpTestCase();
75 G.factory_startup =
true;
79 ASSERT_EQ(
G.main->wm.first,
nullptr);
85 if (
G.main->wm.first !=
nullptr) {
87 G.main->wm.first =
nullptr;
105 testing::Test::TearDownTestCase();
113 testing::Test::TearDown();
118 const std::string &test_assets_dir = blender::tests::flags_test_asset_dir();
119 if (test_assets_dir.empty()) {
123 char abspath[FILENAME_MAX];
124 BLI_path_join(abspath,
sizeof(abspath), test_assets_dir.c_str(), filepath,
NULL);
127 if (
bfile ==
nullptr) {
128 ADD_FAILURE() <<
"Unable to load file '" << filepath <<
"' from test assets dir '"
129 << test_assets_dir <<
"'";
137 if (
bfile ==
nullptr) {
void BKE_appdir_init(void)
void BKE_appdir_exit(void)
void BKE_tempdir_session_purge(void)
void BKE_blender_atexit(void)
void BKE_blender_globals_init(void)
void BKE_blender_free(void)
void BKE_idtype_init(void)
void BKE_images_init(void)
void BKE_modifier_init(void)
void BKE_node_system_init(void)
void BKE_scene_graph_update_tagged(struct Depsgraph *depsgraph, struct Main *bmain)
size_t BLI_path_join(char *__restrict dst, const size_t dst_len, const char *path_first,...) ATTR_NONNULL(1
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, struct ReportList *reports)
void BLO_blendfiledata_free(BlendFileData *bfd)
Depsgraph * DEG_graph_new(struct Main *bmain, struct Scene *scene, struct ViewLayer *view_layer, eEvaluationMode mode)
void DEG_free_node_types(void)
void DEG_graph_free(Depsgraph *graph)
void DEG_register_node_types(void)
void DEG_graph_build_from_view_layer(struct Depsgraph *graph)
blenloader genfile private function prototypes
void DNA_sdna_current_free(void)
void DNA_sdna_current_init(void)
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)
struct ViewLayer * cur_view_layer
void wm_close_and_free(bContext *C, wmWindowManager *wm)