Skip to content

Commit ec9ef2c

Browse files
authored
Merge pull request #294 from gottesmm/swift/master-no-refcount-hardcode
Update test to not hard code the specific ref count that we see.
2 parents 18a57e2 + ad339ca commit ec9ef2c

File tree

1 file changed

+1
-1
lines changed
  • lldb/packages/Python/lldbsuite/test/lang/swift/swift_reference_counting

1 file changed

+1
-1
lines changed

lldb/packages/Python/lldbsuite/test/lang/swift/swift_reference_counting/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func lambda(_ Arg : Patatino) -> Int {
2525

2626
func main() -> Int {
2727
var LiveObj = Patatino(37) //%self.expect('language swift refcount Blah', substrs=['unresolved identifier \'Blah\''], error=True)
28-
var Ret : Int = lambda(LiveObj) //%self.expect('language swift refcount LiveObj', substrs=['(strong = 3, unowned = 1, weak = 1)'])
28+
var Ret : Int = lambda(LiveObj) //%self.expect('language swift refcount LiveObj', substrs=['(strong =', 'unowned =', 'weak ='])
2929
var MyStruct = Tinky() //%self.expect('language swift refcount MyStruct', substrs=['refcount only available for class types'], error=True)
3030
return Ret
3131
}

0 commit comments

Comments
 (0)