Overview
Comment: | OFStreamTests: Work around Apple GCC 4.0.1 bug |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
826147d4e922dfe4cb126a7801b1a598 |
User & Date: | js on 2021-08-09 16:41:42 |
Other Links: | manifest | tags |
Context
2021-08-14
| ||
20:44 | configure: Extend check for broken -Wdocumentation check-in: fee9c3ebb8 user: js tags: trunk | |
2021-08-09
| ||
16:41 | OFStreamTests: Work around Apple GCC 4.0.1 bug check-in: 826147d4e9 user: js tags: trunk | |
16:03 | configure: Work around autoconf 2.61 bug check-in: aeedc99550 user: js tags: trunk | |
Changes
Modified tests/OFStreamTests.m from [7f38bebd95] to [641e91bbf2].
︙ | ︙ | |||
68 69 70 71 72 73 74 | OFString *string; char *cString; cString = OFAllocMemory(pageSize - 2, 1); memset(cString, 'X', pageSize - 3); cString[pageSize - 3] = '\0'; | | > | > > | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | OFString *string; char *cString; cString = OFAllocMemory(pageSize - 2, 1); memset(cString, 'X', pageSize - 3); cString[pageSize - 3] = '\0'; TEST(@"-[readLine] #1", [[test readLine] isEqual: @"foo"]) string = [test readLine]; TEST(@"-[readLine] #2", string != nil && string.length == pageSize - 3 && !strcmp(string.UTF8String, cString)) OFFreeMemory(cString); objc_autoreleasePoolPop(pool); } @end |