47 testing::Test::SetUpTestCase();
68 G.factory_startup =
true;
72 ASSERT_EQ(
G.main->wm.first,
nullptr);
78 if (
G.main->wm.first !=
nullptr) {
80 G.main->wm.first =
nullptr;
99 testing::Test::TearDownTestCase();
108 testing::Test::TearDown();
113 const std::string &test_assets_dir = blender::tests::flags_test_asset_dir();
114 if (test_assets_dir.empty()) {
118 char abspath[FILENAME_MAX];
119 BLI_path_join(abspath,
sizeof(abspath), test_assets_dir.c_str(), filepath,
NULL);
123 if (
bfile ==
nullptr) {
124 ADD_FAILURE() <<
"Unable to load file '" << filepath <<
"' from test assets dir '"
125 << test_assets_dir <<
"'";
133 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_callback_global_init(void)
void BKE_idtype_init(void)
void BKE_mball_cubeTable_free(void)
void BKE_modifier_init(void)
void BKE_node_system_init(void)
void BKE_scene_graph_update_tagged(struct Depsgraph *depsgraph, struct Main *bmain)
void BKE_vfont_builtin_register(const void *mem, int size)
size_t BLI_path_join(char *__restrict dst, 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 BlendFileReadReport *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)
const char datatoc_bfont_pfb[]
int datatoc_bfont_pfb_size
GHOST_TSuccess GHOST_DisposeSystemPaths(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)