Add missing ASSERT_EQ on status after API call in c_api_unified_experimental_test

PiperOrigin-RevId: 310671562
Change-Id: Id0b07d6889340d631f6144f8fa6dd3f3309b3776
This commit is contained in:
Mehdi Amini 2020-05-08 19:32:09 -07:00 committed by TensorFlower Gardener
parent 4ece5df0d8
commit 3528e494a2

View File

@ -131,6 +131,7 @@ TEST(UnifedCAPI, TestBasicGraph) {
string fn_name = "double";
TF_AbstractFunction* func = TF_ExecutionContextToFunction(
graph_ctx, fn_name.c_str(), 1, placeholder_t, 1, output_t, status.get());
ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
TF_DeleteAbstractTensor(placeholder_t);
TF_DeleteAbstractTensor(output_t);