summaryrefslogtreecommitdiff
path: root/tests/common.h
diff options
context:
space:
mode:
authorSertonix2026-04-09 11:59:07 +0200
committerJulien Voisin2026-04-13 00:05:57 +0200
commite7565d67d283ed0ba284fc109d53a9aded6289fc (patch)
tree8803edf2ca59df2fa8cf47649bf13a8270f8e2ef /tests/common.h
parentdb9e4bbab55d5c6e6ec38038f279ec14abecd4f5 (diff)
Ensure in tests/common.h that fortify-headers.h was included
Exposes bug in c++ compile test which do not include fortify-headers
Diffstat (limited to 'tests/common.h')
-rw-r--r--tests/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/common.h b/tests/common.h
index 9567653..ffe113a 100644
--- a/tests/common.h
+++ b/tests/common.h
@@ -23,6 +23,10 @@
23#include <signal.h> 23#include <signal.h>
24#include <stdio.h> 24#include <stdio.h>
25 25
26#ifndef _FORTIFY_HEADERS_H
27#error Never included fortify-headers.h
28#endif
29
26volatile int chk_fail_ok; 30volatile int chk_fail_ok;
27volatile int ret; 31volatile int ret;
28jmp_buf chk_fail_buf; 32jmp_buf chk_fail_buf;