summaryrefslogtreecommitdiff
path: root/src/test/test_dir.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-05-08 14:26:05 -0400
committerNick Mathewson <nickm@torproject.org>2018-05-08 14:26:05 -0400
commit3df37d7b6be4f7d6ece0cd12812595d5f91ea72f (patch)
tree6770a53f669d987686c67e282170254498683fe5 /src/test/test_dir.c
parent5edc72a45b7479f5fe791054aa19f6b3b478c725 (diff)
parentbed3e8da9cc291546da06d5a5163a3598650d545 (diff)
downloadtor-3df37d7b6be4f7d6ece0cd12812595d5f91ea72f.tar.gz
tor-3df37d7b6be4f7d6ece0cd12812595d5f91ea72f.zip
Merge branch 'bug26004_029_squashed'
Diffstat (limited to 'src/test/test_dir.c')
-rw-r--r--src/test/test_dir.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index 25b4e42877..77ba6e3bb4 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -1501,6 +1501,13 @@ test_dir_measured_bw_kb(void *arg)
"bw=1024 junk=007\n",
"misc=junk node_id=$557365204145532d32353620696e73746561642e "
"bw=1024 junk=007\n",
+ /* check whether node_id can be at the end */
+ "bw=1024 node_id=$557365204145532d32353620696e73746561642e\n",
+ /* check whether node_id can be at the end and bw has something in front*/
+ "foo=bar bw=1024 node_id=$557365204145532d32353620696e73746561642e\n",
+ /* check whether node_id can be at the end and something in the
+ * in the middle of bw and node_id */
+ "bw=1024 foo=bar node_id=$557365204145532d32353620696e73746561642e\n",
"end"
};
const char *lines_fail[] = {