Skip to content

Commit 1e4a4d5

Browse files
committed
Improve test
1 parent 88b2bb5 commit 1e4a4d5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

offload/test/sanitizer/stack_trace_multi_path_many.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
// : %fcheck-generic --check-prefixes=CHECK < %t.out
55
// : %libomptarget-compileoptxx-generic -fsanitize=offload -O3
66
// : not %libomptarget-run-generic 2> %t.out
7-
// RUN: %libomptarget-compileoptxx-generic -fsanitize=offload -O3 -g
7+
// RUN: %libomptarget-compileoptxx-generic -fsanitize=offload -O3 -g -DLEVELS=11
88
// RUN: not %libomptarget-run-generic 2> %t.out
9-
// RUN: %fcheck-generic --check-prefixes=DEBUG < %t.out
9+
// RUN: %fcheck-generic --check-prefixes=DBG11 < %t.out
10+
// %libomptarget-compileoptxx-generic -fsanitize=offload -O3 -g -DLEVELS=12
11+
// not %libomptarget-run-generic 2> %t.out
12+
// %fcheck-generic --check-prefixes=DBG12 < %t.out
1013
// clang-format on
1114

1215
// UNSUPPORTED: aarch64-unknown-linux-gnu
@@ -33,10 +36,10 @@ int main(void) {
3336
int *ValidInt = (int *)omp_target_alloc(4, omp_get_default_device());
3437
#pragma omp target is_device_ptr(ValidInt)
3538
{
36-
level<12>(ValidInt);
39+
level<LEVELS>(ValidInt);
3740
short *ValidShort = ((short *)ValidInt) + 2;
38-
level<12>(ValidShort);
41+
level<LEVELS>(ValidShort);
3942
char *Invalid = ((char *)ValidInt) + 4;
40-
level<12>(Invalid);
43+
level<LEVELS>(Invalid);
4144
}
4245
}

0 commit comments

Comments
 (0)