diff options
author | Adrian Prantl <aprantl@apple.com> | 2024-03-12 16:10:38 -0700 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2024-03-12 16:12:19 -0700 |
commit | 422d240dc9b4b36f505c43e6fe650af4f4cf4f98 (patch) | |
tree | 3245c7e688de9f6ae872c65d815a9f35c97981f2 /cross-project-tests | |
parent | fd32e744a58fe61b4bd6acfa1d501bc1d6c1d96f (diff) | |
download | llvm-422d240dc9b4b36f505c43e6fe650af4f4cf4f98.zip llvm-422d240dc9b4b36f505c43e6fe650af4f4cf4f98.tar.gz llvm-422d240dc9b4b36f505c43e6fe650af4f4cf4f98.tar.bz2 |
Relax tests to also work with newer versions of lldb.
- result variables are optional
- static members may print their values
- public/protected shows up in ptype output
Diffstat (limited to 'cross-project-tests')
-rw-r--r-- | cross-project-tests/debuginfo-tests/llgdb-tests/static-member-2.cpp | 10 | ||||
-rw-r--r-- | cross-project-tests/debuginfo-tests/llgdb-tests/static-member.cpp | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/cross-project-tests/debuginfo-tests/llgdb-tests/static-member-2.cpp b/cross-project-tests/debuginfo-tests/llgdb-tests/static-member-2.cpp index 5b6647c..c9b416d 100644 --- a/cross-project-tests/debuginfo-tests/llgdb-tests/static-member-2.cpp +++ b/cross-project-tests/debuginfo-tests/llgdb-tests/static-member-2.cpp @@ -4,19 +4,19 @@ // XFAIL: gdb-clang-incompatibility // DEBUGGER: delete breakpoints -// DEBUGGER: break static-member.cpp:33 +// DEBUGGER: break static-member-2.cpp:36 // DEBUGGER: r // DEBUGGER: ptype C // CHECK: {{struct|class}} C { -// CHECK: static const int a; +// CHECK: static const int a // CHECK-NEXT: static int b; // CHECK-NEXT: static int c; -// CHECK-NEXT: int d; +// CHECK: int d; // CHECK-NEXT: } // DEBUGGER: p C::a -// CHECK: ${{[0-9]}} = 4 +// CHECK: 4 // DEBUGGER: p C::c -// CHECK: ${{[0-9]}} = 15 +// CHECK: 15 // PR14471, PR14734 diff --git a/cross-project-tests/debuginfo-tests/llgdb-tests/static-member.cpp b/cross-project-tests/debuginfo-tests/llgdb-tests/static-member.cpp index 29dd84d..492e0ca 100644 --- a/cross-project-tests/debuginfo-tests/llgdb-tests/static-member.cpp +++ b/cross-project-tests/debuginfo-tests/llgdb-tests/static-member.cpp @@ -3,14 +3,14 @@ // RUN: %test_debuginfo %s %t.out // XFAIL: !system-darwin && gdb-clang-incompatibility // DEBUGGER: delete breakpoints -// DEBUGGER: break static-member.cpp:33 +// DEBUGGER: break static-member.cpp:35 // DEBUGGER: r // DEBUGGER: ptype MyClass // CHECK: {{struct|class}} MyClass { -// CHECK: static const int a; +// CHECK: static const int a // CHECK-NEXT: static int b; // CHECK-NEXT: static int c; -// CHECK-NEXT: int d; +// CHECK: int d; // CHECK-NEXT: } // DEBUGGER: p MyClass::a // CHECK: ${{[0-9]}} = 4 |