Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/gtests/bmesh/bmesh_core_test.cc4
-rwxr-xr-xtests/python/cycles_render_tests.py3
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/gtests/bmesh/bmesh_core_test.cc b/tests/gtests/bmesh/bmesh_core_test.cc
index 0cbb6ca343e..f386abc0b2b 100644
--- a/tests/gtests/bmesh/bmesh_core_test.cc
+++ b/tests/gtests/bmesh/bmesh_core_test.cc
@@ -9,7 +9,9 @@ TEST(bmesh_core, BMVertCreate) {
BMVert *bv1, *bv2, *bv3;
const float co1[3] = {1.0f, 2.0f, 0.0f};
- bm = BM_mesh_create(&bm_mesh_allocsize_default);
+ BMeshCreateParams bm_params;
+ bm_params.use_toolflags = true;
+ bm = BM_mesh_create(&bm_mesh_allocsize_default, &bm_params);
EXPECT_EQ(0, bm->totvert);
/* make a custom layer so we can see if it is copied properly */
BM_data_layer_add(bm, &bm->vdata, CD_PROP_FLT);
diff --git a/tests/python/cycles_render_tests.py b/tests/python/cycles_render_tests.py
index fb9e63aa222..e1b5e2d1d23 100755
--- a/tests/python/cycles_render_tests.py
+++ b/tests/python/cycles_render_tests.py
@@ -70,7 +70,8 @@ def verify_output(filepath):
os.remove(failed_image)
return True
except subprocess.CalledProcessError as e:
- shutil.copy(TEMP_FILE, failed_image)
+ if e.returncode != 1:
+ shutil.copy(TEMP_FILE, failed_image)
if VERBOSE:
print(e.output.decode("utf-8"))
return e.returncode == 1