Skip to content

Commit

Permalink
test/service: fix some comment
Browse files Browse the repository at this point in the history
[ upstream commit 79afbbf ]

Change the inaccurate comment of 'set pass flag' to 'clear pass flag'
as the '*pass_test = 0' code actually implements clearing.

Fixes: f038a81 ("service: add unit tests")

Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
  • Loading branch information
JoyceKong-Arm authored and cpaelzer committed Nov 30, 2021
1 parent 03cbc1d commit 1bb03e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/test/test_service_cores.c
Expand Up @@ -66,7 +66,7 @@ static int32_t dummy_mt_unsafe_cb(void *args)
rte_delay_ms(250);
rte_atomic32_clear((rte_atomic32_t *)atomic_lock);
} else {
/* 2nd thread will fail to take lock, so set pass flag */
/* 2nd thread will fail to take lock, so clear pass flag */
*pass_test = 0;
}

Expand Down

0 comments on commit 1bb03e0

Please sign in to comment.