specta / expecta

A Matcher Framework for Objective-C/Cocoa
MIT License
1.59k stars 158 forks source link

Assign actual value to a strong variable in EXP_expect. #176

Closed StatusReport closed 9 years ago

StatusReport commented 9 years ago

Weak values are accessed multiple times in EXP_expect, and may be set to nil in the middle of expectation.

This is revealed by expecting a weak value and turning on the CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK property in the build settings.

orta commented 9 years ago

Alright, this feels :+1: - I was wondering if there had been churn around this but can't find anything in the history.