summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_tables.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_tables.c b/tests/test_tables.c
index 282aa8f..1a0652a 100644
--- a/tests/test_tables.c
+++ b/tests/test_tables.c
@@ -210,7 +210,8 @@ static void test_table_codec(void) {
int decoding_offset = 0;
result = amqp_decode_table(decoding_bytes, &pool, &decoded, &decoding_offset);
if (result < 0) {
- printf("Table decoding failed: %d (%s)\n", result, strerror(-result));
+ printf("Table decoding failed: %d (%s)\n", result,
+ amqp_error_string(-result));
abort();
}
printf("BBBBBBBBBB\n");
@@ -228,7 +229,8 @@ static void test_table_codec(void) {
result = amqp_encode_table(encoding_result, &table, &offset);
if (result < 0) {
- printf("Table encoding failed: %d (%s)\n", result, strerror(-result));
+ printf("Table encoding failed: %d (%s)\n", result,
+ amqp_error_string(-result));
abort();
}