mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:27:45 +00:00
Tests: Reword 'output' to 'return value' in TestScanf
This commit is contained in:
parent
e3f17401cb
commit
e71e9de61f
1 changed files with 5 additions and 5 deletions
|
@ -142,7 +142,7 @@ Argument charstararg2 { sizeof(charstar), &_charstararg2[0] };
|
|||
struct TestSuite {
|
||||
const char* format;
|
||||
const char* input;
|
||||
int expected_output;
|
||||
int expected_return_value;
|
||||
size_t argument_count;
|
||||
Argument arguments[8];
|
||||
Array<unsigned char, 32> expected_values[8]; // 32 bytes for each argument's value.
|
||||
|
@ -214,12 +214,12 @@ static void do_one_test(const TestSuite& test)
|
|||
#pragma GCC diagnostic pop
|
||||
|
||||
bool overall = true;
|
||||
printf(" output value...\n");
|
||||
if (rc != test.expected_output) {
|
||||
printf(" output value FAIL, expected %d but got %d\n", test.expected_output, rc);
|
||||
printf(" return value...\n");
|
||||
if (rc != test.expected_return_value) {
|
||||
printf(" return value FAIL, expected %d but got %d\n", test.expected_return_value, rc);
|
||||
overall = false;
|
||||
} else {
|
||||
printf(" output value PASS\n");
|
||||
printf(" return value PASS\n");
|
||||
}
|
||||
|
||||
printf(" read values...\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue