commit 754c053795082260737938fb1de7ef0d655e22eb
parent 2911be65b8b52cfb7ec7f11390b4498543f758ed
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 20 Oct 2013 14:13:58 +0000
-fix testcase
Diffstat:
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c
@@ -916,6 +916,10 @@ dns_result_parser (void *cls,
continue;
}
}
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Returning DNS response for `%s' with %u answers\n",
+ rh->ac_tail->label,
+ (unsigned int) p->num_answers);
rh->proc (rh->proc_cls, rd_count - skip, rd);
GNS_resolver_lookup_cancel (rh);
}
@@ -1472,6 +1476,10 @@ handle_gns_resolution_result (void *cls,
}
/* yes, we are done, return result */
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Returning GNS response for `%s' with %u answers\n",
+ rh->ac_tail->label,
+ rd_off);
rh->proc (rh->proc_cls, rd_off, rd_new);
GNS_resolver_lookup_cancel (rh);
return;
diff --git a/src/gns/test_gns_revocation.sh b/src/gns/test_gns_revocation.sh
@@ -23,10 +23,10 @@ then
exit 1
fi
-if [ "$RES_IP_REV" == " " ]
+if [ "x$RES_IP_REV" == "x" ]
then
exit 0
else
- echo "Failed to revoke zone, got $RES_IP."
+ echo "Failed to revoke zone, got $RES_IP_REV."
exit 1
fi