File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ umf_test::pool_unique_handle_t poolCreateExtUnique(poolCreateExtParams params) {
4040 &upstream_provider);
4141 EXPECT_EQ (ret, UMF_RESULT_SUCCESS);
4242 EXPECT_NE (upstream_provider, nullptr );
43+ if (ret != UMF_RESULT_SUCCESS || upstream_provider == nullptr ) {
44+ assert (false && " Failed to create a memory provider" );
45+ }
4346
4447 provider = upstream_provider;
4548
@@ -54,6 +57,9 @@ umf_test::pool_unique_handle_t poolCreateExtUnique(poolCreateExtParams params) {
5457 UMF_POOL_CREATE_FLAG_OWN_PROVIDER, &hPool);
5558 EXPECT_EQ (ret, UMF_RESULT_SUCCESS);
5659 EXPECT_NE (hPool, nullptr );
60+ if (ret != UMF_RESULT_SUCCESS || hPool == nullptr ) {
61+ assert (false && " Failed to create a memory pool" );
62+ }
5763
5864 // we do not need params anymore
5965 if (poolParamsDestroy) {
You can’t perform that action at this time.
0 commit comments