From: Mathieu Desnoyers Date: Mon, 23 May 2016 01:29:58 +0000 (-0400) Subject: Fix: test: relax requirement on weak-hidden symbol address X-Git-Tag: v2.8.1~21 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3444f73e2f950457c85c27a48a71d5a89cf45b8e;p=lttng-ust.git Fix: test: relax requirement on weak-hidden symbol address Now that tracepoint.h works around gcc issues by adding a pointer indirection, we can relax the requirement on weak-hidden symbol addresses. Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/gcc-weak-hidden/main.c b/tests/gcc-weak-hidden/main.c index b4542f79..78199f5b 100644 --- a/tests/gcc-weak-hidden/main.c +++ b/tests/gcc-weak-hidden/main.c @@ -78,11 +78,9 @@ 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"); + 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 0; }