Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch test harness to print errors in decimal #1100

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions include/aws/testing/aws_test_harness.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static int s_cunit_failure_message0(
if (assert_rv != AWS_OP_SUCCESS) { \
if (!PRINT_FAIL_INTERNAL0(__VA_ARGS__)) { \
PRINT_FAIL_INTERNAL0( \
"Expected success at %s; got return value %d with last error 0x%04x\n", \
"Expected success at %s; got return value %d with last error 0x%04d\n", \
#condition, \
assert_rv, \
aws_last_error()); \
Expand All @@ -162,7 +162,7 @@ static int s_cunit_failure_message0(
if (assert_rv != AWS_OP_ERR) { \
if (!PRINT_FAIL_INTERNAL0(__VA_ARGS__)) { \
PRINT_FAIL_INTERNAL0( \
"Expected failure at %s; got return value %d with last error 0x%04x\n", \
"Expected failure at %s; got return value %d with last error 0x%04d\n", \
#condition, \
assert_rv, \
aws_last_error()); \
Expand All @@ -179,7 +179,7 @@ static int s_cunit_failure_message0(
if (assert_rv != AWS_OP_ERR) { \
fprintf( \
AWS_TESTING_REPORT_FD, \
"%sExpected error but no error occurred; rv=%d, aws_last_error=%04x (expected %04x): ", \
"%sExpected error but no error occurred; rv=%d, aws_last_error=%04d (expected %04d): ", \
FAIL_PREFIX, \
assert_rv, \
assert_err, \
Expand All @@ -192,7 +192,7 @@ static int s_cunit_failure_message0(
if (assert_err != assert_err_expect) { \
fprintf( \
AWS_TESTING_REPORT_FD, \
"%sIncorrect error code; aws_last_error=%04x (expected %04x): ", \
"%sIncorrect error code; aws_last_error=%04d (expected %04d): ", \
FAIL_PREFIX, \
assert_err, \
assert_err_expect); \
Expand Down
Loading