Dispatcher test additions

This commit is contained in:
Olof hagsand 2021-10-14 08:58:35 +02:00
parent d2d3454177
commit 93d1149925
7 changed files with 72 additions and 16 deletions

View file

@ -126,7 +126,7 @@ main(int argc,
int len;
char *buf = NULL;
int ret;
FILE *fp = stdin; /* unless overriden by argv[1] */
FILE *fp = stdin; /* unless overriden by -f */
char *yang_file_dir = NULL;
yang_stmt *yspec = NULL;
char *xpath = NULL;
@ -169,7 +169,7 @@ main(int argc,
case 'f': /* XML file */
filename = optarg;
if ((fp = fopen(filename, "r")) == NULL){
clicon_err(OE_UNIX, errno, "open(%s)", argv[1]);
clicon_err(OE_UNIX, errno, "fopen(%s)", optarg);
goto done;
}
break;