2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

2285. [func] Test framework for client memory context management.

[RT #17377]
This commit is contained in:
Mark Andrews
2008-01-02 05:03:07 +00:00
parent dc0ecf08db
commit f5d0f49584
9 changed files with 81 additions and 13 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: main.c,v 1.158 2007/09/26 03:22:43 marka Exp $ */
/* $Id: main.c,v 1.159 2008/01/02 05:03:07 marka Exp $ */
/*! \file */
@@ -356,7 +356,7 @@ parse_command_line(int argc, char *argv[]) {
isc_commandline_errprint = ISC_FALSE;
while ((ch = isc_commandline_parse(argc, argv,
"46c:C:d:fgi:lm:n:N:p:P:st:u:vx:")) != -1) {
"46c:C:d:fgi:lm:n:N:p:P:st:T:u:vx:")) != -1) {
switch (ch) {
case '4':
if (disable4)
@@ -439,6 +439,17 @@ parse_command_line(int argc, char *argv[]) {
/* XXXJAB should we make a copy? */
ns_g_chrootdir = isc_commandline_argument;
break;
case 'T':
/*
* clienttest: make clients single shot with their
* own memory context.
*/
if (strcmp(isc_commandline_argument, "clienttest") == 0)
ns_g_clienttest = ISC_TRUE;
else
fprintf(stderr, "unknown -T flag '%s\n",
isc_commandline_argument);
break;
case 'u':
ns_g_username = isc_commandline_argument;
break;