Go to the source code of this file.
Functions | |
fail_unless (rc==3,"return code should be 3") | |
fail_unless (!strcmp(output,"bug"),"wrong output") | |
fail_unless (rc==2,"return code should be 2") | |
fail_unless (!strcmp(output,"bu"),"wrong output") | |
fail_unless (!strcmp(output,"012"),"wrong output") | |
fail_unless (rc==8,"return code should be 8") | |
fail_unless (!strcmp(output,"bug "),"wrong output") | |
fail_unless (!strcmp(output," bu"),"wrong output") | |
fail_unless (rc==4,"return code should be 4") | |
fail_unless (!strcmp(output,"102"),"wrong output") | |
fail_unless (rc==16,"return code should be 16") | |
fail_unless (!strcmp(output," bug bu"),"wrong output") | |
fail_unless (!strcmp(output," 1234 567"),"wrong output") | |
static CURLcode | unit_setup (void) |
static void | unit_stop (void) |
Variables | |
char | buf [3] = {'b', 'u', 'g'} |
char | output [24] |
UNITTEST_START int | rc = curl_msnprintf(output, 4, "%.*s", width, buf) |
const char * | str = "bug" |
int | width = 3 |
fail_unless | ( | rc | = =3 , |
"return code should be 3" | |||
) |
fail_unless | ( | ! | strcmpoutput,"bug", |
"wrong output" | |||
) |
fail_unless | ( | rc | = =2 , |
"return code should be 2" | |||
) |
fail_unless | ( | ! | strcmpoutput,"bu", |
"wrong output" | |||
) |
fail_unless | ( | ! | strcmpoutput,"012", |
"wrong output" | |||
) |
fail_unless | ( | rc | = =8 , |
"return code should be 8" | |||
) |
fail_unless | ( | ! | strcmpoutput,"bug ", |
"wrong output" | |||
) |
fail_unless | ( | ! | strcmpoutput," bu", |
"wrong output" | |||
) |
fail_unless | ( | rc | = =4 , |
"return code should be 4" | |||
) |
fail_unless | ( | ! | strcmpoutput,"102", |
"wrong output" | |||
) |
fail_unless | ( | rc | = =16 , |
"return code should be 16" | |||
) |
fail_unless | ( | ! | strcmpoutput," bug bu", |
"wrong output" | |||
) |
fail_unless | ( | ! | strcmpoutput," 1234 567", |
"wrong output" | |||
) |
static CURLcode unit_setup | ( | void | ) | [static] |
Definition at line 26 of file unit1398.c.
static void unit_stop | ( | void | ) | [static] |
Definition at line 27 of file unit1398.c.
char buf[3] = {'b', 'u', 'g'} |
Definition at line 32 of file unit1398.c.
char output[24] |
Definition at line 35 of file unit1398.c.
rc = curl_msnprintf(output, 4, "%.*s", width, buf) |
Definition at line 31 of file unit1398.c.
const char* str = "bug" |
Definition at line 33 of file unit1398.c.
width = 3 |
Definition at line 34 of file unit1398.c.