diff options
Diffstat (limited to 'test/safestack')
-rw-r--r-- | test/safestack/lit.cfg | 5 | ||||
-rw-r--r-- | test/safestack/overflow.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/safestack/lit.cfg b/test/safestack/lit.cfg index 13fc92fa4b2b..535c09742ca9 100644 --- a/test/safestack/lit.cfg +++ b/test/safestack/lit.cfg @@ -22,3 +22,8 @@ if config.lto_supported: # SafeStack tests are currently supported on Linux, FreeBSD and Darwin only. if config.host_os not in ['Linux', 'FreeBSD', 'Darwin']: config.unsupported = True + +# Allow tests to use REQUIRES=stable-runtime. For use when you cannot use XFAIL +# because the test fail due some runtime issue. +if config.target_arch != 'aarch64': + config.available_features.add('stable-runtime') diff --git a/test/safestack/overflow.c b/test/safestack/overflow.c index 14e29823cd99..27436947e49c 100644 --- a/test/safestack/overflow.c +++ b/test/safestack/overflow.c @@ -7,6 +7,8 @@ // Test that buffer overflows on the unsafe stack do not affect variables on the // safe stack. +// REQUIRES: stable-runtime + __attribute__((noinline)) void fct(volatile int *buffer) { |