diff options
-rw-r--r-- | common/debug.c | 4 | ||||
-rw-r--r-- | common/test.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/common/debug.c b/common/debug.c index 1ef51d3..547ce2f 100644 --- a/common/debug.c +++ b/common/debug.c @@ -147,6 +147,10 @@ p11_debug_precond (const char *format, vfprintf (stderr, format, va); va_end (va); +#ifdef __COVERITY__ + fprintf (stderr, "ignoring P11_KIT_STRICT under coverity: %d", (int)debug_strict); +#else if (debug_strict) +#endif abort (); } diff --git a/common/test.c b/common/test.c index b6ad012..c72cb7d 100644 --- a/common/test.c +++ b/common/test.c @@ -122,6 +122,11 @@ p11_test_fail (const char *filename, free (output); + /* Let coverity know we're not supposed to return from here */ +#ifdef __COVERITY__ + abort(); +#endif + longjmp (gl.jump, 1); } |