davidmoreno / onion

C library to create simple HTTP servers and Web Applications.
http://www.coralbits.com/libonion/
Other
2.01k stars 250 forks source link

Wrong test case: 01-internal/03-response (t05_printf) #204

Open anuragagarwal561994 opened 8 years ago

anuragagarwal561994 commented 8 years ago

https://github.com/davidmoreno/onion/blob/master/tests/01-internal/03-response.c#L191

It writes NULL and expects (nil) but %p NULL output is implementation dependent (http://stackoverflow.com/questions/10461360/does-printf-null-pointer-with-p-always-give-nil)

On some systems it may give nil and on some system it may give 0x0 (darwin). Thus this test case will unnecessarily fail on cross platform.