]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
circuitbuild: expect bug message that clang-format will generate.
authorNick Mathewson <nickm@torproject.org>
Fri, 10 Jan 2020 15:20:39 +0000 (10:20 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 6 Feb 2020 20:34:06 +0000 (15:34 -0500)
clang-format wants to put no space here, so we need to tell the test
to expect a lack of a space.

src/feature/dirauth/dirvote.c
src/test/test_dir.c

index 9490867e8257992944cf560b3ee09beef30a6602..aec7a06c7aa8e5c7dfd7c8ca287e8cff067cd748 100644 (file)
@@ -886,7 +886,7 @@ dirvote_get_intermediate_param_value(const smartlist_t *param_list,
       int ok;
       value = (int32_t)
         tor_parse_long(integer_str, 10, INT32_MIN, INT32_MAX, &ok, NULL);
-      if (BUG(! ok))
+      if (BUG(!ok))
         return default_val;
       ++n_found;
     }
index 3b2ba64d2c5d4cc4f1c31531a4cb7d6b555acef5..dd07e30e416addf1d4dd2f6f913b6d47805a5be1 100644 (file)
@@ -3022,7 +3022,7 @@ test_dir_param_voting_lookup(void *arg)
             dirvote_get_intermediate_param_value(lst, "jack", -100));
   tt_int_op(smartlist_len(tor_get_captured_bug_log_()), OP_EQ, 1);
   tt_str_op(smartlist_get(tor_get_captured_bug_log_(), 0), OP_EQ,
-            "!(! ok)");
+            "!(!ok)");
   tor_end_capture_bugs_();
   /* electricity and opa aren't integers. */
   tor_capture_bugs_(1);
@@ -3030,7 +3030,7 @@ test_dir_param_voting_lookup(void *arg)
             dirvote_get_intermediate_param_value(lst, "electricity", -100));
   tt_int_op(smartlist_len(tor_get_captured_bug_log_()), OP_EQ, 1);
   tt_str_op(smartlist_get(tor_get_captured_bug_log_(), 0), OP_EQ,
-            "!(! ok)");
+            "!(!ok)");
   tor_end_capture_bugs_();
 
   tor_capture_bugs_(1);
@@ -3038,7 +3038,7 @@ test_dir_param_voting_lookup(void *arg)
             dirvote_get_intermediate_param_value(lst, "opa", -100));
   tt_int_op(smartlist_len(tor_get_captured_bug_log_()), OP_EQ, 1);
   tt_str_op(smartlist_get(tor_get_captured_bug_log_(), 0), OP_EQ,
-            "!(! ok)");
+            "!(!ok)");
   tor_end_capture_bugs_();
 
  done: