diff options
| author | Sertonix | 2026-04-09 11:59:07 +0200 |
|---|---|---|
| committer | Julien Voisin | 2026-04-13 00:05:57 +0200 |
| commit | e7565d67d283ed0ba284fc109d53a9aded6289fc (patch) | |
| tree | 8803edf2ca59df2fa8cf47649bf13a8270f8e2ef /tests | |
| parent | db9e4bbab55d5c6e6ec38038f279ec14abecd4f5 (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')
| -rw-r--r-- | tests/common.h | 4 |
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 | |||
| 26 | volatile int chk_fail_ok; | 30 | volatile int chk_fail_ok; |
| 27 | volatile int ret; | 31 | volatile int ret; |
| 28 | jmp_buf chk_fail_buf; | 32 | jmp_buf chk_fail_buf; |
