~kernevil/ubuntu/trusty/bind9/sdlz-hmac-keys

« back to all changes in this revision

Viewing changes to bin/tests/rdata_test.c

  • Committer: Package Import Robot
  • Author(s): LaMont Jones, Matthew Grant, LaMont Jones
  • Date: 2012-10-29 08:37:49 UTC
  • mfrom: (1.9.2)
  • Revision ID: package-import@ubuntu.com-20121029083749-r9inpzl0yuj9xdlu
Tags: 1:9.8.4.dfsg-1
[Matthew Grant]

* Turn off dlopen as it was causing test compile failures.
* Add missing library .postrm files for debhelper

[LaMont Jones]

* New upstream version
* soname fixup
* Ack NMUs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2004-2007  Internet Systems Consortium, Inc. ("ISC")
 
2
 * Copyright (C) 2004-2007, 2011  Internet Systems Consortium, Inc. ("ISC")
3
3
 * Copyright (C) 1998-2003  Internet Software Consortium.
4
4
 *
5
5
 * Permission to use, copy, modify, and/or distribute this software for any
15
15
 * PERFORMANCE OF THIS SOFTWARE.
16
16
 */
17
17
 
18
 
/* $Id: rdata_test.c,v 1.48 2007-06-19 23:46:59 tbox Exp $ */
 
18
/* $Id: rdata_test.c,v 1.48.814.2 2011/08/28 23:45:47 tbox Exp $ */
19
19
 
20
20
#include <config.h>
21
21
 
973
973
                        type = token.value.as_ulong;
974
974
                        isc_buffer_init(&tbuf, outbuf, sizeof(outbuf));
975
975
                        result = dns_rdatatype_totext(type, &tbuf);
 
976
                        if (result != ISC_R_SUCCESS) {
 
977
                                fprintf(stdout,
 
978
                                        "dns_rdatatype_totext "
 
979
                                        "returned %s(%d)\n",
 
980
                                        dns_result_totext(result), result);
 
981
                                fflush(stdout);
 
982
                                need_eol = 1;
 
983
                                continue;
 
984
                        }
976
985
                        fprintf(stdout, "type = %.*s(%d)\n",
977
986
                                (int)tbuf.used, (char*)tbuf.base, type);
978
987
                } else if (token.type == isc_tokentype_string) {
1005
1014
                        class = token.value.as_ulong;
1006
1015
                        isc_buffer_init(&tbuf, outbuf, sizeof(outbuf));
1007
1016
                        result = dns_rdatatype_totext(class, &tbuf);
 
1017
                        if (result != ISC_R_SUCCESS) {
 
1018
                                fprintf(stdout, "dns_rdatatype_totext "
 
1019
                                        "returned %s(%d)\n",
 
1020
                                        dns_result_totext(result), result);
 
1021
                                fflush(stdout);
 
1022
                                need_eol = 1;
 
1023
                                continue;
 
1024
                        }
1008
1025
                        fprintf(stdout, "class = %.*s(%d)\n",
1009
1026
                                (int)tbuf.used, (char*)tbuf.base, class);
1010
1027
                } else if (token.type == isc_tokentype_string) {