diff options
Diffstat (limited to 'src/p11-tests.c')
-rw-r--r-- | src/p11-tests.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/p11-tests.c b/src/p11-tests.c index 65414dd..3346766 100644 --- a/src/p11-tests.c +++ b/src/p11-tests.c @@ -6,6 +6,8 @@ #include <stdlib.h> #include <unistd.h> +int p11t_test_unexpected = 1; + static void usage() { @@ -19,13 +21,16 @@ main(int argc, char* argv[]) const char *config = NULL; int ch; - while((ch = getopt(argc, argv, "f")) != -1) + while((ch = getopt(argc, argv, "f:z")) != -1) { switch(ch) { case 'f': config = optarg; break; + case 'z': + p11t_test_unexpected = 0; + break; case '?': default: usage(); |