From e4b7277f93ba881b95dea08fbd58a371465d7864 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Tue, 4 Aug 2009 13:19:32 +0200 Subject: Exit with failure on failure. --- tests/nul-in-x509-names.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/nul-in-x509-names.c') diff --git a/tests/nul-in-x509-names.c b/tests/nul-in-x509-names.c index 9bbd73d875..f79dea0fff 100644 --- a/tests/nul-in-x509-names.c +++ b/tests/nul-in-x509-names.c @@ -94,6 +94,7 @@ main (void) { gnutls_x509_crt_t crt; int ret; + int exit_code = 0; ret = gnutls_global_init (); if (ret < 0) @@ -124,6 +125,7 @@ main (void) else { puts("gnutls_x509_crt_check_hostname BROKEN (NUL-IN-CN)"); + exit_code = 1; } ret = gnutls_x509_crt_import (crt, &badguy_nul_san, GNUTLS_X509_FMT_PEM); @@ -141,11 +143,12 @@ main (void) else { puts("gnutls_x509_crt_check_hostname BROKEN (NUL-IN-SAN)"); + exit_code = 1; } gnutls_x509_crt_deinit (crt); gnutls_global_deinit (); - return 0; + return exit_code; } -- cgit v1.2.1