[compiler-rt] r255491 - [compiler-rt] [safestack] Silent overflow.c test on aarch64
Adhemerval Zanella via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 14 03:58:44 PST 2015
Author: azanella
Date: Mon Dec 14 05:58:43 2015
New Revision: 255491
URL: http://llvm.org/viewvc/llvm-project?rev=255491&view=rev
Log:
[compiler-rt] [safestack] Silent overflow.c test on aarch64
The safestack overflow.c test is currently failing on an aarch64
buildbot with a segfault, but it is currently passing on other
configuration.
This patch silent the issue for now on aarch64 by setting to all
supported architectures the 'stable-runtime' configure and set
the test to requires it.
Modified:
compiler-rt/trunk/test/safestack/lit.cfg
compiler-rt/trunk/test/safestack/overflow.c
Modified: compiler-rt/trunk/test/safestack/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/safestack/lit.cfg?rev=255491&r1=255490&r2=255491&view=diff
==============================================================================
--- compiler-rt/trunk/test/safestack/lit.cfg (original)
+++ compiler-rt/trunk/test/safestack/lit.cfg Mon Dec 14 05:58:43 2015
@@ -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')
Modified: compiler-rt/trunk/test/safestack/overflow.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/safestack/overflow.c?rev=255491&r1=255490&r2=255491&view=diff
==============================================================================
--- compiler-rt/trunk/test/safestack/overflow.c (original)
+++ compiler-rt/trunk/test/safestack/overflow.c Mon Dec 14 05:58:43 2015
@@ -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)
{
More information about the llvm-commits
mailing list