chiark / gitweb /
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)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 13 Jun 2014 08:57:41 +0000 (09:57 +0100)
commitf6fe6b8d26ef7cb9fcca0d9b245ce11414b416fd
treefb00092730065750866ac2e0e70c2635786bcee8
parent898afc783a7bd5947405b4fd828a34dfbd9b99a8
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