File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ umf_test::pool_unique_handle_t poolCreateExtUnique(poolCreateExtParams params) {
40
40
&upstream_provider);
41
41
EXPECT_EQ (ret, UMF_RESULT_SUCCESS);
42
42
EXPECT_NE (upstream_provider, nullptr );
43
+ if (ret != UMF_RESULT_SUCCESS || upstream_provider == nullptr ) {
44
+ assert (false && " Failed to create a memory provider" );
45
+ return umf_test::pool_unique_handle_t (nullptr , nullptr );
46
+ }
43
47
44
48
provider = upstream_provider;
45
49
@@ -54,6 +58,10 @@ umf_test::pool_unique_handle_t poolCreateExtUnique(poolCreateExtParams params) {
54
58
UMF_POOL_CREATE_FLAG_OWN_PROVIDER, &hPool);
55
59
EXPECT_EQ (ret, UMF_RESULT_SUCCESS);
56
60
EXPECT_NE (hPool, nullptr );
61
+ if (ret != UMF_RESULT_SUCCESS || hPool == nullptr ) {
62
+ assert (false && " Failed to create a memory pool" );
63
+ return umf_test::pool_unique_handle_t (nullptr , nullptr );
64
+ }
57
65
58
66
// we do not need params anymore
59
67
if (poolParamsDestroy) {
You can’t perform that action at this time.
0 commit comments