tests: Remove MATCH macro and change it to strncmp 65/314865/1 accepted/tizen/unified/20240723.101922 accepted/tizen/unified/dev/20240724.110040 accepted/tizen/unified/toolchain/20240812.133451 accepted/tizen/unified/x/20240724.011732 accepted/tizen/unified/x/asan/20240813.231934
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 22 Jul 2024 07:51:53 +0000 (16:51 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Mon, 22 Jul 2024 07:51:53 +0000 (16:51 +0900)
commitd80949d66d00e2da5009932cb18288df046462b1
treefd543a83c3ae8bb2b10c90df7a715379348a4202
parent9d070ab520b86118dc9a55678dcc6c8066ce1b33
tests: Remove MATCH macro and change it to strncmp

MATCH macro was used to compare two strings in wrong way.
This because when the two string are compared by strncmp,
the comparison length should be strlen + 1 of one string to avoid null string comparison case.
Thus, MATCH macro is replaced by original strncmp function.
Furthermore, using sizeof literal is more clear in terms of readability and maintenance.

Change-Id: I00272ccb12f9424177bdab3a3d33a1f97617b29c
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
tests/libcommon/test-common.c