aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_util.c
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2012-03-28 15:02:15 +0200
committerSebastian Hahn <sebastian@torproject.org>2012-03-28 15:02:15 +0200
commit77bc1b803e0d58b23ff48c2359300ef812f10ee1 (patch)
tree1e6a04b2418f5b14378aa7ab92ce05cbd7f90446 /src/test/test_util.c
parentc3a7bcf4e6652fe34714caaf94cb39e555df87b1 (diff)
downloadtor-77bc1b803e0d58b23ff48c2359300ef812f10ee1.tar
tor-77bc1b803e0d58b23ff48c2359300ef812f10ee1.tar.gz
Fix a bunch of check-spaces complaints
Diffstat (limited to 'src/test/test_util.c')
-rw-r--r--src/test/test_util.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index 9da4cb799..0f9d1a769 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -50,7 +50,6 @@ test_util_time(void)
test_eq(-1005000L, tv_udiff(&start, &end));
-
/* Test tor_timegm */
/* The test values here are confirmed to be correct on a platform
@@ -77,7 +76,6 @@ test_util_time(void)
a_time.tm_mday = 10;
test_eq((time_t) -1, tor_timegm(&a_time));
-
/* Test {format,parse}_rfc1123_time */
format_rfc1123_time(timestr, 0);
@@ -110,7 +108,6 @@ test_util_time(void)
test_eq(-1, parse_rfc1123_time("Wed, 30 Mar 2011 23:59:61 GMT", &t_res));
#endif
-
/* Test parse_iso_time */
t_res = 0;
@@ -140,7 +137,6 @@ test_util_time(void)
test_eq(-1, parse_iso_time("2011-00-30 23:59:59 GMT", &t_res));
test_eq(-1, parse_iso_time("2011-03-30 23:59", &t_res));
-
/* Test tor_gettimeofday */
end.tv_sec = 4;
@@ -154,7 +150,6 @@ test_util_time(void)
/* We might've timewarped a little. */
tt_int_op(tv_udiff(&start, &end), >=, -5000);
-
/* Test format_iso_time */
tv.tv_sec = (time_t)1326296338;
@@ -910,7 +905,8 @@ test_util_strmisc(void)
wrap_string(sl, "A test of string wrapping...", 6, "### ", "# ");
cp = smartlist_join_strings(sl, "", 0, NULL);
- test_streq(cp, "### A\n# test\n# of\n# stri\n# ng\n# wrap\n# ping\n# ...\n");
+ test_streq(cp,
+ "### A\n# test\n# of\n# stri\n# ng\n# wrap\n# ping\n# ...\n");
tor_free(cp);
SMARTLIST_FOREACH(sl, char *, cp, tor_free(cp));
smartlist_clear(sl);
@@ -924,7 +920,8 @@ test_util_strmisc(void)
wrap_string(sl, "Small test", 6, "### ", "#### ");
cp = smartlist_join_strings(sl, "", 0, NULL);
- test_streq(cp, "### Sm\n#### a\n#### l\n#### l\n#### t\n#### e\n#### s\n#### t\n");
+ test_streq(cp, "### Sm\n#### a\n#### l\n#### l\n#### t\n#### e"
+ "\n#### s\n#### t\n");
tor_free(cp);
SMARTLIST_FOREACH(sl, char *, cp, tor_free(cp));
smartlist_clear(sl);