From 8ac5e29cfb8fc68c9cdb72014a538e6f3a9802d7 Mon Sep 17 00:00:00 2001 From: Michael Graeb Date: Mon, 3 Jun 2024 16:35:35 -0700 Subject: [PATCH] Fix weird decimal formatting in tests --- include/aws/testing/aws_test_harness.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/aws/testing/aws_test_harness.h b/include/aws/testing/aws_test_harness.h index 2f62bab62..769e75fc9 100644 --- a/include/aws/testing/aws_test_harness.h +++ b/include/aws/testing/aws_test_harness.h @@ -135,7 +135,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%04d\n", \ + "Expected success at %s; got return value %d with last error %d\n", \ #condition, \ assert_rv, \ aws_last_error()); \ @@ -150,7 +150,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%04d\n", \ + "Expected failure at %s; got return value %d with last error %d\n", \ #condition, \ assert_rv, \ aws_last_error()); \ @@ -167,7 +167,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=%04d (expected %04d): ", \ + "%sExpected error but no error occurred; rv=%d, aws_last_error=%d (expected %d): ", \ FAIL_PREFIX, \ assert_rv, \ assert_err, \ @@ -180,7 +180,7 @@ static int s_cunit_failure_message0( if (assert_err != assert_err_expect) { \ fprintf( \ AWS_TESTING_REPORT_FD, \ - "%sIncorrect error code; aws_last_error=%04d (expected %04d): ", \ + "%sIncorrect error code; aws_last_error=%d (expected %d): ", \ FAIL_PREFIX, \ assert_err, \ assert_err_expect); \