Skip to content

Commit ad339ca

Browse files
committed
Update test to not hard code the specific ref count that we see.
We just want to make sure that we get some output, we don't care about the actual ref count number in the output.
1 parent e5324e0 commit ad339ca

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)