Skip to content

Commit e02c6a8

Browse files
authored
[lldb] Test po of multiline string (#8815)
Test `po` of a multiline string and verify that newlines are not escaped. See swiftlang/swift#73550
1 parent 75f6d13 commit e02c6a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lldb/test/API/lang/swift/po/sys_types/main.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ func main() {
3333
//% self.expect("script lldb.frame.FindVariable('nsobject').GetObjectDescription()", substrs = ['<NSObject: 0x']) # may change depending on OS/platform
3434
var anyobject: AnyObject = 1234 as NSNumber //% self.expect("po any", substrs = ['1234'])
3535
var notification = Notification(name: Notification.Name(rawValue: "JustANotification"), object: nil)
36-
print("yay I am done!") //% self.expect("po notification", substrs=['JustANotification'])
37-
//% self.expect("po notification", matching=False, substrs=['super'])
36+
var lines = "one\ndue" //% self.expect("po notification", substrs=['JustANotification'])
37+
//% self.expect("po notification", matching=False, substrs=['super'])
38+
print("yay I am done!") //% self.expect("po lines", startstr='one\ndue')
3839
}
3940

4041
main()

0 commit comments

Comments
 (0)