diff --git a/Tests/base/NSLock/RecursiveLock.m b/Tests/base/NSLock/RecursiveLock.m index 784451478..d9b03707a 100644 --- a/Tests/base/NSLock/RecursiveLock.m +++ b/Tests/base/NSLock/RecursiveLock.m @@ -36,6 +36,7 @@ int main() #endif NS_DURING { + testHopeful = YES; PASS([lock isLockedByCurrentThread] == NO, "NSRecursiveLock isLockedByCurrentThread returns NO when not locked"); [lock lock]; @@ -44,6 +45,7 @@ int main() [lock unlock]; PASS([lock isLockedByCurrentThread] == NO, "NSRecursiveLock isLockedByCurrentThread returns NO when unlocked"); + testHopeful = NO; } NS_HANDLER {