Skip to content

Commit 5d66da7

Browse files
committed
TestPtrRef2Typedef.py change - take 2.
Our build is still getting this test to fail with the presence of const in '(Foo &const) y = 0x' and '(Foo &&const) z = 0x'. This change simply changes the match substrings to ignore the portion after the final '&' and before the closing ')'. This should cover the presence (or absence) of the const qualifier. llvm-svn: 206762
1 parent 7bff0b6 commit 5d66da7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lldb/test/functionalities/data-formatter/ptr_ref_typedef/TestPtrRef2Typedef.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,12 @@ def cleanup():
5858
self.runCmd('type summary add --cascade true -s "IntRRef" "int &&"')
5959

6060
self.expect("frame variable x", substrs = ['(Foo *) x = 0x','IntPointer'])
61-
self.expect("frame variable y", substrs = ['(Foo &) y = 0x','IntLRef'])
62-
self.expect("frame variable z", substrs = ['(Foo &&) z = 0x','IntRRef'])
61+
# note: Ubuntu 12.04 x86_64 build with gcc 4.8.2 is getting a
62+
# const after the ref that isn't showing up on FreeBSD. This
63+
# tweak changes the behavior so that the const is not part of
64+
# the match.
65+
self.expect("frame variable y", substrs = ['(Foo &', ') y = 0x','IntLRef'])
66+
self.expect("frame variable z", substrs = ['(Foo &&', ') z = 0x','IntRRef'])
6367

6468
if __name__ == '__main__':
6569
import atexit

0 commit comments

Comments
 (0)