aboutsummaryrefslogtreecommitdiff
path: root/test/aborttest.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-03-18 12:16:53 +0100
committerRichard Levitte <levitte@openssl.org>2016-03-18 15:25:23 +0100
commitef33d131850440da8556f08996f63898e849d267 (patch)
tree219fe120a18040c6ac0fd73b3af4d4c735599b5f /test/aborttest.c
parent2ef157afb9254d043b0f8e0909c7f050bb5389a5 (diff)
downloadopenssl-ef33d131850440da8556f08996f63898e849d267.zip
openssl-ef33d131850440da8556f08996f63898e849d267.tar.gz
openssl-ef33d131850440da8556f08996f63898e849d267.tar.bz2
Add a test to see that signals are caught as failures
Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Emilia Käsper <emilia@openssl.org>
Diffstat (limited to 'test/aborttest.c')
-rw-r--r--test/aborttest.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/aborttest.c b/test/aborttest.c
new file mode 100644
index 0000000..98aeddf
--- /dev/null
+++ b/test/aborttest.c
@@ -0,0 +1,17 @@
+/*
+ * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL licenses, (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * https://www.openssl.org/source/license.html
+ * or in the file LICENSE in the source distribution.
+ */
+
+#include <openssl/crypto.h>
+
+int main(int argc, char **argv)
+{
+ OPENSSL_die("Voluntary abort", __FILE__, __LINE__);
+ return 0;
+}