| 2466 | } |
| 2467 | |
| 2468 | void |
| 2469 | test_preserve_data (void) |
| 2470 | { |
| 2471 | char my_data[] = "application-specific data"; |
| 2472 | http_parser parser; |
| 2473 | parser.data = my_data; |
| 2474 | http_parser_init(&parser, HTTP_REQUEST); |
| 2475 | if (parser.data != my_data) { |
| 2476 | printf("\n*** parser.data not preserved accross http_parser_init ***\n\n"); |
| 2477 | abort(); |
| 2478 | } |
| 2479 | } |
| 2480 | |
| 2481 | struct url_test { |
| 2482 | const char *name; |
no test coverage detected