Skip to content

Commit e09d8da

Browse files
committed
[lldb] Relax substring check in TestProtocolExtensionComputerProperty.py
Older versions of the SDK printed `$R0 = 1.7453292519943295` while newer versions print `$R0 = (native = 1.7453292519943295)`. Update the test to accept both.
1 parent a2dd486 commit e09d8da

File tree

1 file changed

+1
-1
lines changed
  • lldb/test/API/lang/swift/protocol_extension_computed_property

1 file changed

+1
-1
lines changed

lldb/test/API/lang/swift/protocol_extension_computed_property/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extension Measurement where UnitType == UnitAngle {
1313
}
1414

1515
func f() {
16-
return //%self.expect('p self.radians', substrs=["CGFloat) $R0 = 1.745"])
16+
return //%self.expect('p self.radians', substrs=["CGFloat) $R0", "= 1.745"])
1717
//%self.expect('p self', substrs=["Measurement<UnitAngle>"])
1818
}
1919
}

0 commit comments

Comments
 (0)