[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Use test_streq in join_win_cmdline unit tests



commit 699af29baedee2309f3ecf550c1d39608e1de6e6
Author: Esteban Manchado Velázquez <emanchado@xxxxxxxxxxxx>
Date:   Sat Feb 11 00:04:24 2012 +0100

    Use test_streq in join_win_cmdline unit tests
---
 src/test/test_util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/test/test_util.c b/src/test/test_util.c
index ba5f332..ea8dbb5 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -2077,7 +2077,7 @@ test_util_join_win_cmdline(void *ptr)
   for (i=0; cmdlines[i]!=NULL; i++) {
     log_info(LD_GENERAL, "Joining argvs[%d], expecting <%s>", i, cmdlines[i]);
     joined_argv = tor_join_win_cmdline(argvs[i]);
-    tt_str_op(joined_argv, ==, cmdlines[i]);
+    test_streq(cmdlines[i], joined_argv);
     tor_free(joined_argv);
   }
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits