From: Klas Lindfors Date: Mon, 15 Apr 2013 09:15:35 +0000 (+0200) Subject: fix test X-Git-Tag: v1.13.0~37 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c0424a8003f2b7eed25feda5000b20cd9818b3b;p=yubikey-personalization fix test --- diff --git a/tests/test_args_to_config.c b/tests/test_args_to_config.c index 37c3a1a..62a5ba6 100644 --- a/tests/test_args_to_config.c +++ b/tests/test_args_to_config.c @@ -110,6 +110,7 @@ int _test_config (YKP_CONFIG *cfg, YK_STATUS *st, int argc, char **argv) YK_KEY *yk = 0; bool autocommit = false; int exit_code = 0; + int data_format = YKP_FORMAT_LEGACY; /* Options */ char *salt = NULL; @@ -137,6 +138,7 @@ int _test_config (YKP_CONFIG *cfg, YK_STATUS *st, int argc, char **argv) /* call args_to_config from ykpers-args.c with a fake set of program arguments */ rc = args_to_config(argc, argv, cfg, yk, &infname, &outfname, + &data_format, &autocommit, salt, st, &verbose, access_code, &use_access_code, @@ -297,6 +299,7 @@ int _test_non_config_args(void) bool autocommit = false; int exit_code = 0; int i; + int data_format = YKP_FORMAT_LEGACY; /* Options */ char *salt = NULL; @@ -329,6 +332,7 @@ int _test_non_config_args(void) /* call args_to_config from ykpers-args.c with a fake set of program arguments */ rc = args_to_config(argc, argv, cfg, yk, &infname, &outfname, + &data_format, &autocommit, salt, st, &verbose, access_code, &use_access_code,