The main change of this patch is to insert {{.*}} in current_address=[[RETURN_ADDRESS_END]]. This is needed to match any of the alternatively printed addresses.
Additionally, clang-format is applied to the two tests.
Differential D43115
[OMPT] Fix inconsistent testcases protze.joachim on Feb 9 2018, 3:26 AM. Authored by
Details The main change of this patch is to insert {{.*}} in current_address=[[RETURN_ADDRESS_END]]. This is needed to match any of the alternatively printed addresses. Additionally, clang-format is applied to the two tests.
Diff Detail
Event TimelineComment Actions Can't compile this # command stderr: runtime/test/ompt/synchronization/flush.c:16:5: warning: more '%' conversions than data arguments [-Wformat] print_current_address(1); ^~~~~~~~~~~~~~~~~~~~~~~ runtime/test/ompt/callback.h:106:3: note: expanded from macro 'print_current_address' print_possible_return_addresses(get_ompt_label_address(id)) runtime/test/ompt/callback.h:125:53: note: expanded from macro 'print_possible_return_addresses' printf("%" PRIu64 ": current_address=%p or %p or %p\n", ompt_get_thread_data()->value, \ runtime/test/ompt/synchronization/flush.c:16:5: error: extraneous ')' before ';' runtime/test/ompt/callback.h:106:3: note: expanded from macro 'print_current_address' print_possible_return_addresses(get_ompt_label_address(id)) runtime/test/ompt/callback.h:126:70: note: expanded from macro 'print_possible_return_addresses' ((char *)addr) - 4, ((char *)addr) - 8), ((char *)addr) - 12) 1 warning and 1 error generated. error: command failed with exit status: 1 There is closing bracket after - 8 which needs to be deleted. Comment Actions However, please see the bug report for deeper investigation.
Comment Actions The initial issue in this patch is resolved by D43195. So removed the additionally printed address for AARCH64, but still allow the testcases to match any printed address.
|