Skip to content

Commit

Permalink
[Test] cleanup testcases
Browse files Browse the repository at this point in the history
Code clean and fix error case, now rank limit of nnstreamer is changed to 16.

Signed-off-by: Jaeyun Jung <[email protected]>
  • Loading branch information
jaeyun-jung committed Sep 9, 2023
1 parent 7923e26 commit 9d149cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions tests/capi/unittest_capi_datatype_consistency.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
*/
TEST (nnstreamer_datatypes, test_all_1)
{
EXPECT_EQ (8, (int) NNS_TENSOR_RANK_LIMIT);
EXPECT_EQ (16, (int) ML_TENSOR_RANK_LIMIT);
EXPECT_EQ ((int) NNS_TENSOR_RANK_LIMIT, (int) ML_TENSOR_RANK_LIMIT);
/** @todo restore this TC when NNS_TENSOR_SIZE_LIMIT is changed to 256 */
// EXPECT_EQ ((int) NNS_TENSOR_SIZE_LIMIT, (int) ML_TENSOR_SIZE_LIMIT);
EXPECT_EQ (sizeof (tensor_dim[0]), sizeof (ml_tensor_dimension[0]));
Expand Down
3 changes: 0 additions & 3 deletions tests/capi/unittest_capi_inference.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3615,9 +3615,6 @@ TEST (nnstreamer_capi_util, get_nth_info_00)

status = ml_tensors_info_destroy (info);
ASSERT_EQ (status, ML_ERROR_NONE);

info_s = nullptr;
tinfo_s = nullptr;
}

/**
Expand Down

0 comments on commit 9d149cb

Please sign in to comment.