From: Kwang Son Date: Thu, 19 Aug 2021 05:59:07 +0000 (-0400) Subject: test: break condition X-Git-Tag: accepted/tizen/unified/20210820.101812^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F47%2F262747%2F1;p=platform%2Fcore%2Fapi%2Fmediavision.git test: break condition Change-Id: I9994f71ad8627dd4a3d6792e87b9602651ba76b4 Signed-off-by: Kwang Son --- diff --git a/test/testsuites/machine_learning/inference/test_image_classification.cpp b/test/testsuites/machine_learning/inference/test_image_classification.cpp index 2a13d06..0aab594 100644 --- a/test/testsuites/machine_learning/inference/test_image_classification.cpp +++ b/test/testsuites/machine_learning/inference/test_image_classification.cpp @@ -40,6 +40,7 @@ void _image_classified_cb(mv_source_h source, const int number_of_classes, for (int i = 0; i < number_of_classes; i++) { if (answer == names[i]) { answer_found = true; + break; } } EXPECT_TRUE(answer_found); diff --git a/test/testsuites/machine_learning/inference/test_object_detection.cpp b/test/testsuites/machine_learning/inference/test_object_detection.cpp index 345fb8f..8cea9f7 100644 --- a/test/testsuites/machine_learning/inference/test_object_detection.cpp +++ b/test/testsuites/machine_learning/inference/test_object_detection.cpp @@ -23,6 +23,7 @@ void _object_detected_cb(mv_source_h source, const int number_of_objects, for (int i = 0; i < number_of_objects; i++) { if (answer == names[i]) { answer_found = true; + break; } } EXPECT_TRUE(answer_found);