aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorEsteban Manchado Velázquez <emanchado@demiurgo.org>2012-02-10 23:41:39 +0100
committerNick Mathewson <nickm@torproject.org>2012-03-08 20:49:25 -0500
commit6b3854f8a37a50f7e48ca3552d3c031bd04a8a5e (patch)
tree2a4800f44c5c5538982bd3abe57a2316ea1fddba /src/test
parent22a915bcd21f4dadff11e951099e7b9e15f8ad7f (diff)
downloadtor-6b3854f8a37a50f7e48ca3552d3c031bd04a8a5e.tar
tor-6b3854f8a37a50f7e48ca3552d3c031bd04a8a5e.tar.gz
Use test_streq in format_helper_exit_status tests
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index e0d3540ae..78a93a8d6 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -1721,23 +1721,23 @@ test_util_exit_status(void *ptr)
clear_hex_errno(hex_errno);
format_helper_exit_status(0, 0, hex_errno);
- tt_str_op(hex_errno, ==, " 0/0\n");
+ test_streq(" 0/0\n", hex_errno);
clear_hex_errno(hex_errno);
format_helper_exit_status(0, 0x7FFFFFFF, hex_errno);
- tt_str_op(hex_errno, ==, " 0/7FFFFFFF\n");
+ test_streq(" 0/7FFFFFFF\n", hex_errno);
clear_hex_errno(hex_errno);
format_helper_exit_status(0xFF, -0x80000000, hex_errno);
- tt_str_op(hex_errno, ==, "FF/-80000000\n");
+ test_streq("FF/-80000000\n", hex_errno);
clear_hex_errno(hex_errno);
format_helper_exit_status(0x7F, 0, hex_errno);
- tt_str_op(hex_errno, ==, " 7F/0\n");
+ test_streq(" 7F/0\n", hex_errno);
clear_hex_errno(hex_errno);
format_helper_exit_status(0x08, -0x242, hex_errno);
- tt_str_op(hex_errno, ==, " 8/-242\n");
+ test_streq(" 8/-242\n", hex_errno);
done:
;