src/, regress/: Prepare for early failures in PTR queries.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 7 Jun 2014 11:26:46 +0000 (12:26 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 12 Oct 2014 19:39:45 +0000 (20:39 +0100)
commitb7be0042881e59f45a4c553db770abbbeb4871d9
tree64091029f3e107cb13395db58084b58f39ec98cc
parent1da660afaf3056f246215e52be47db4fc25103ba
src/, regress/: Prepare for early failures in PTR queries.

Soon we're going to change the way adns_r_ptr queries work: in
particular, queries with names which can't be parsed back into addresses
will be rejected during submission rather than waiting for the answer to
the initial PTR question to come back.

So here we apply a really simple temporary hack to adns_submit which
approximately captures the behaviour we're after, and adjust the various
test cases to match.  We'll take this hack out when we make the proper
change to the PTR handling.

Hopefully this will persuade reviewers that there's nothing up my
sleeves while I mess with the regression tests.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
22 files changed:
regress/case-abbrev.out
regress/case-abbrev.sys
regress/case-abbrevto.out
regress/case-abbrevto.sys
regress/case-norecurse3.out
regress/case-norecurse3.sys
regress/case-owner.out
regress/case-owner.sys
regress/case-ptrbaddom.out
regress/case-ptrbaddom.sys
regress/case-rootqueryall-as.out
regress/case-rootqueryall-as.sys
regress/case-rootqueryall.out
regress/case-rootqueryall.sys
regress/case-tcpallfail.out
regress/case-tcpblock.out
regress/case-tcpblock.sys
regress/case-tcpblockbrk.out
regress/case-tcpblockbrk.sys
regress/case-tcpblockwr.out
regress/case-tcpblockwr.sys
src/query.c