]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use test_streq in format_helper_exit_status tests
authorEsteban Manchado Velázquez <emanchado@demiurgo.org>
Fri, 10 Feb 2012 22:41:39 +0000 (23:41 +0100)
committerNick Mathewson <nickm@torproject.org>
Fri, 9 Mar 2012 01:49:25 +0000 (20:49 -0500)
src/test/test_util.c

index e0d3540ae6001d3e9f70caaae737fced66d8ae0c..78a93a8d6b0af756c001f39139078b2122b63231 100644 (file)
@@ -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:
   ;