[tor-commits] [tor/master] Use test_streq in format_helper_exit_status tests

nickm at torproject.org nickm at torproject.org
Fri Mar 9 16:30:59 UTC 2012


commit 6b3854f8a37a50f7e48ca3552d3c031bd04a8a5e
Author: Esteban Manchado Velázquez <emanchado at demiurgo.org>
Date:   Fri Feb 10 23:41:39 2012 +0100

    Use test_streq in format_helper_exit_status tests
---
 src/test/test_util.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/test/test_util.c b/src/test/test_util.c
index e0d3540..78a93a8 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:
   ;





More information about the tor-commits mailing list