Overview
| Comment: | Fix tests with Apple GCC 4.0.1 |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
8911d7f0316abb03a9c09bf320a8cd2d |
| User & Date: | js on 2020-09-27 03:27:57 |
| Other Links: | manifest | tags |
Context
|
2020-09-27
| ||
| 03:28 | OFMethodSignatureTests: Fix typo (check-in: 2a02eed3df user: js tags: trunk) | |
| 03:27 | Fix tests with Apple GCC 4.0.1 (check-in: 8911d7f031 user: js tags: trunk) | |
| 03:08 | Work around bugs in Apple GCC 4.0.1 (check-in: 9e9ce6aa1c user: js tags: trunk) | |
Changes
Modified tests/OFMethodSignatureTests.m from [ae86bd797d] to [a4557d359d].
| ︙ | ︙ | |||
124 125 126 127 128 129 130 | of_sizeof_type_encoding(@encode(struct test1_struct)) == sizeof(struct test1_struct)) TEST(@"of_sizeof_type_encoding() #2", of_sizeof_type_encoding(@encode(struct test2_struct)) == sizeof(struct test2_struct)) | | > | 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
of_sizeof_type_encoding(@encode(struct test1_struct)) ==
sizeof(struct test1_struct))
TEST(@"of_sizeof_type_encoding() #2",
of_sizeof_type_encoding(@encode(struct test2_struct)) ==
sizeof(struct test2_struct))
#if !defined(__STDC_NO_COMPLEX__) && defined(HAVE_COMPLEX_H) && \
OF_GCC_VERSION >= 402
TEST(@"of_sizeof_type_encoding() #3",
of_sizeof_type_encoding(@encode(struct test3_struct)) ==
sizeof(struct test3_struct))
#endif
TEST(@"of_sizeof_type_encoding() #4",
of_sizeof_type_encoding(@encode(union test3_union)) ==
|
| ︙ | ︙ | |||
150 151 152 153 154 155 156 | of_alignof_type_encoding(@encode(struct test1_struct)) == OF_ALIGNOF(struct test1_struct)) TEST(@"of_alignof_type_encoding() #2", of_alignof_type_encoding(@encode(struct test2_struct)) == OF_ALIGNOF(struct test2_struct)) | | > | 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
of_alignof_type_encoding(@encode(struct test1_struct)) ==
OF_ALIGNOF(struct test1_struct))
TEST(@"of_alignof_type_encoding() #2",
of_alignof_type_encoding(@encode(struct test2_struct)) ==
OF_ALIGNOF(struct test2_struct))
#if !defined(__STDC_NO_COMPLEX__) && defined(HAVE_COMPLEX_H) && \
OF_GCC_VERSION >= 402
TEST(@"of_alignof_type_encoding() #3",
of_alignof_type_encoding(@encode(struct test3_struct)) ==
OF_ALIGNOF(struct test3_struct))
#endif
TEST(@"of_alignof_type_encoding() #4",
of_alignof_type_encoding(@encode(union test3_union)) ==
|
| ︙ | ︙ |
Modified tests/OFStreamTests.m from [75ebf3e4bd] to [3c0c93a949].
| ︙ | ︙ | |||
72 73 74 75 76 77 78 | char *cstr; cstr = [t allocMemoryWithSize: pageSize - 2]; memset(cstr, 'X', pageSize - 3); cstr[pageSize - 3] = '\0'; TEST(@"-[readLine]", [[t readLine] isEqual: @"foo"] && | | | 72 73 74 75 76 77 78 79 80 81 82 83 84 | char *cstr; cstr = [t allocMemoryWithSize: pageSize - 2]; memset(cstr, 'X', pageSize - 3); cstr[pageSize - 3] = '\0'; TEST(@"-[readLine]", [[t readLine] isEqual: @"foo"] && [(str = [t readLine]) length] == pageSize - 3 && !strcmp(str.UTF8String, cstr)) objc_autoreleasePoolPop(pool); } @end |