On s390x, the changes to `control_tool.c` cause a different return
address to be returned from the call to `print_current_address(0)`. Due
to the strictness of the current address returned by this call, this
lead to a test failure.
Since the return values of `omp_control_tool` are checked in separate
tests already, revert the changes to ensure that the return address
stays at the expected value.
Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
(cherry picked from commit 1737a913ed)
This commit is contained in:
parent
3f9b9936be
commit
a5564a0330
1 changed files with 1 additions and 4 deletions
|
|
@ -6,16 +6,14 @@
|
|||
#define TEST_NEED_PRINT_FRAME_FROM_OUTLINED_FN
|
||||
#include "callback.h"
|
||||
#include <omp.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
#pragma omp parallel num_threads(1)
|
||||
{
|
||||
print_frame_from_outlined_fn(1);
|
||||
print_frame(0);
|
||||
int result = omp_control_tool(omp_control_tool_flush, 1, NULL);
|
||||
omp_control_tool(omp_control_tool_flush, 1, NULL);
|
||||
print_current_address(0);
|
||||
printf("control_tool result = %d\n", result);
|
||||
}
|
||||
|
||||
// clang-format off
|
||||
|
|
@ -28,7 +26,6 @@ int main() {
|
|||
// CHECK: {{^}}[[MASTER_ID]]: __builtin_frame_address(0)=[[REENTER_FRAME:(0x)?[0-f]*]]
|
||||
// CHECK: {{^}}[[MASTER_ID]]: ompt_event_control_tool: command=3, modifier=1, arg=[[NULL]], codeptr_ra=[[RETURN_ADDRESS:(0x)?[0-f]*]], current_task_frame.exit=[[EXIT_FRAME]], current_task_frame.reenter={{(0x)?[0-f]*}}
|
||||
// CHECK-NEXT: {{^}}[[MASTER_ID]]: current_address={{.*}}[[RETURN_ADDRESS]]
|
||||
// CHECK-NEXT: control_tool result = 0
|
||||
// clang-format on
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue