Created
August 4, 2011 01:32
-
-
Save amrox/1124312 to your computer and use it in GitHub Desktop.
TEST_WAIT_UNTIL_TRUE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define TEST_WAIT_UNTIL_TRUE_SLEEP_SECONDS (0.25) | |
| #define TEST_WAIT_UNTIL_TRUE(expr) \ | |
| while( (expr) == NO ) [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:TEST_WAIT_UNTIL_TRUE_SLEEP_SECONDS]]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment