Commit 6b74dcca authored by Mark Andrews's avatar Mark Andrews

report argument error in human form

parent 4278230b
/*
* Copyright (C) 1998-2001, 2003-2005, 2007, 2009, 2015-2017 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2001, 2003-2005, 2007, 2009, 2015-2018 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: name_test.c,v 1.43 2009/09/02 23:48:01 tbox Exp $ */
#include <config.h>
#include <stdlib.h>
......@@ -123,8 +121,8 @@ main(int argc, char *argv[]) {
dns_rootname, 0, NULL);
if (result != 0) {
fprintf(stderr,
"dns_name_fromtext() failed: %d\n",
result);
"dns_name_fromtext() failed: %s\n",
dns_result_totext(result));
exit(1);
}
origin = &oname.name;
......@@ -147,8 +145,8 @@ main(int argc, char *argv[]) {
0, NULL);
if (result != 0) {
fprintf(stderr,
"dns_name_fromtext() failed: %d\n",
result);
"dns_name_fromtext() failed: %s\n",
dns_result_totext(result));
exit(1);
}
}
......
......@@ -496,7 +496,7 @@
./bin/tests/mem/win32/t_mem.vcxproj.in X 2013,2015,2016,2017
./bin/tests/mem/win32/t_mem.vcxproj.user X 2013
./bin/tests/mempool_test.c C 1999,2000,2001,2004,2007,2016
./bin/tests/name_test.c C 1998,1999,2000,2001,2003,2004,2005,2007,2009,2015,2016,2017
./bin/tests/name_test.c C 1998,1999,2000,2001,2003,2004,2005,2007,2009,2015,2016,2017,2018
./bin/tests/named.conf CONF-C 1999,2000,2001,2004,2007,2011,2015,2016
./bin/tests/names/Makefile.in MAKE 1999,2000,2001,2002,2004,2007,2009,2012,2014,2016,2017
./bin/tests/names/dns_name_compare_data X 1999,2000,2001
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment