X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_service_cores.c;h=ced6ed008175008a4419731eb08d2560b840e340;hb=a2dfcd1ff609f5a4fd3b65774618a35c5c9f73c6;hp=8659a1526c5405b3b09265fd986f4ed1512b5460;hpb=79afbbfeea44f624242ad93c28072d73da631e1b;p=dpdk.git diff --git a/app/test/test_service_cores.c b/app/test/test_service_cores.c index 8659a1526c..ced6ed0081 100644 --- a/app/test/test_service_cores.c +++ b/app/test/test_service_cores.c @@ -318,10 +318,16 @@ service_attr_get(void) TEST_ASSERT_EQUAL(1, cycles_gt_zero, "attr_get() failed to get cycles (expected > zero)"); - rte_service_lcore_stop(slcore_id); + TEST_ASSERT_EQUAL(0, rte_service_map_lcore_set(id, slcore_id, 0), + "Disabling valid service and core failed"); + TEST_ASSERT_EQUAL(0, rte_service_lcore_stop(slcore_id), + "Failed to stop service lcore"); wait_slcore_inactive(slcore_id); + TEST_ASSERT_EQUAL(0, rte_service_lcore_may_be_active(slcore_id), + "Service lcore not stopped after waiting."); + TEST_ASSERT_EQUAL(0, rte_service_attr_get(id, attr_calls, &attr_value), "Valid attr_get() call didn't return success"); TEST_ASSERT_EQUAL(1, (attr_value > 0),