http-parser: assert in test is wrong on 32-bit sparc
1 files added
1 files modified
| | |
| | | |
| | | COMPONENT_NAME= http-parser |
| | | COMPONENT_VERSION= 2.9.4 |
| | | COMPONENT_REVISION= 2 |
| | | COMPONENT_FMRI= library/http-parser |
| | | COMPONENT_CLASSIFICATION=System/Libraries |
| | | COMPONENT_PROJECT_URL= https://github.com/nodejs/http-parser |
New file |
| | |
| | | --- http-parser-2.9.4/test.c.orig :: |
| | | +++ http-parser-2.9.4/test.c :: |
| | | @@ -4221,7 +4221,9 @@ |
| | | printf("http_parser v%u.%u.%u (0x%06lx)\n", major, minor, patch, version); |
| | | |
| | | printf("sizeof(http_parser) = %u\n", (unsigned int)sizeof(http_parser)); |
| | | - assert(sizeof(http_parser) == 4 + 4 + 8 + 2 + 2 + 4 + sizeof(void *)); |
| | | + //// On sparcv7, the field alignment/padding will result http_parser |
| | | + //// to be 32 bytes, yet pointer size is still 32-bit. |
| | | + //// assert(sizeof(http_parser) == 4 + 4 + 8 + 2 + 2 + 4 + sizeof(void *)); |
| | | |
| | | //// API |
| | | test_preserve_data(); |