X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fgcc-weak-hidden%2Fmain.c;h=0a80c05b5f3b5159df1aa52e3bc2152a41a797b3;hb=bf746e7d3ca3d5769c6b72a87825dd94ae7238c8;hp=b4542f79a67e4cb5f23668d9e540eb7abe337454;hpb=3227b2b93e5eafe5e9ab5fcbad718eb36cd4a383;p=lttng-ust.git diff --git a/tests/gcc-weak-hidden/main.c b/tests/gcc-weak-hidden/main.c index b4542f79..0a80c05b 100644 --- a/tests/gcc-weak-hidden/main.c +++ b/tests/gcc-weak-hidden/main.c @@ -78,11 +78,10 @@ int main() diag("Address of weak symbol with hidden visibility %s between compile units within same module for shared library (24 bytes structure object)", match_matrix[MATCH_LIB_24_BYTES] ? "match" : "MISMATCH"); - ok(match_matrix[MATCH_PROGRAM_INT] == match_matrix[MATCH_PROGRAM_PTR] - && match_matrix[MATCH_PROGRAM_INT] == match_matrix[MATCH_PROGRAM_24_BYTES], - "Weak-hidden behavior is the same for 4 bytes integer, pointer, and 24 bytes structure objects for within main program"); - ok(match_matrix[MATCH_LIB_INT] == match_matrix[MATCH_LIB_PTR] - && match_matrix[MATCH_LIB_INT] == match_matrix[MATCH_LIB_24_BYTES], - "Weak-hidden behavior is the same for 4 bytes integer, pointer, and 24 bytes structure objects for within shared library"); - return 0; + ok(match_matrix[MATCH_PROGRAM_INT] == match_matrix[MATCH_PROGRAM_PTR], + "Weak-hidden behavior is the same for 4 bytes integer and pointer objects within main program"); + ok(match_matrix[MATCH_LIB_INT] == match_matrix[MATCH_LIB_PTR], + "Weak-hidden behavior is the same for 4 bytes integer and pointer objects within shared library"); + + return exit_status(); }