]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove unreliable assertion
authorEsteban Manchado Velázquez <emanchado@demiurgo.org>
Sat, 18 Feb 2012 18:29:48 +0000 (19:29 +0100)
committerNick Mathewson <nickm@torproject.org>
Fri, 9 Mar 2012 01:49:26 +0000 (20:49 -0500)
* This assertion fails when executing the whole suite, but not when executing
  this test by itself
* Ideally I'd prefer starting with a guaranteed empty directory, but it's not
  very important in this case as non-existence of other paths is being checked
  explicitly

src/test/test_util.c

index 3efe617ed5e018fdb3f47ba37dcb797466d97f9f..3860f156a9180d52ce85a6fa66cd12df372effa8 100644 (file)
@@ -1644,7 +1644,6 @@ test_util_listdir(void *ptr)
   dir_contents = tor_listdir(dirname);
   test_assert(dir_contents);
   /* make sure that each filename is listed. */
-  test_eq(4, smartlist_len(dir_contents));
   test_assert(smartlist_string_isin_case(dir_contents, "hopscotch"));
   test_assert(smartlist_string_isin_case(dir_contents, "mumblety-peg"));
   test_assert(smartlist_string_isin_case(dir_contents, ".hidden-file"));