[compiler-rt] r240671 - [CFI] Run tests that use cfi diagnostic mode only if cxxabi parts of UBSan are available.
Alexey Samsonov
vonosmas at gmail.com
Thu Jun 25 11:45:31 PDT 2015
Author: samsonov
Date: Thu Jun 25 13:45:30 2015
New Revision: 240671
URL: http://llvm.org/viewvc/llvm-project?rev=240671&view=rev
Log:
[CFI] Run tests that use cfi diagnostic mode only if cxxabi parts of UBSan are available.
Modified:
compiler-rt/trunk/test/cfi/anon-namespace.cpp
compiler-rt/trunk/test/cfi/bad-cast.cpp
compiler-rt/trunk/test/cfi/multiple-inheritance.cpp
compiler-rt/trunk/test/cfi/nvcall.cpp
compiler-rt/trunk/test/cfi/overwrite.cpp
compiler-rt/trunk/test/cfi/simple-fail.cpp
compiler-rt/trunk/test/cfi/vdtor.cpp
Modified: compiler-rt/trunk/test/cfi/anon-namespace.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/cfi/anon-namespace.cpp?rev=240671&r1=240670&r2=240671&view=diff
==============================================================================
--- compiler-rt/trunk/test/cfi/anon-namespace.cpp (original)
+++ compiler-rt/trunk/test/cfi/anon-namespace.cpp Thu Jun 25 13:45:30 2015
@@ -38,6 +38,8 @@
// are different. It currently does so because bitset names have global scope
// so we have to mangle the file path into the bitset name.
+// REQUIRES: cxxabi
+
#include <stdio.h>
#include "utils.h"
Modified: compiler-rt/trunk/test/cfi/bad-cast.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/cfi/bad-cast.cpp?rev=240671&r1=240670&r2=240671&view=diff
==============================================================================
--- compiler-rt/trunk/test/cfi/bad-cast.cpp (original)
+++ compiler-rt/trunk/test/cfi/bad-cast.cpp Thu Jun 25 13:45:30 2015
@@ -66,6 +66,8 @@
// Tests that the CFI enforcement detects bad casts.
+// REQUIRES: cxxabi
+
#include <stdio.h>
#include "utils.h"
Modified: compiler-rt/trunk/test/cfi/multiple-inheritance.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/cfi/multiple-inheritance.cpp?rev=240671&r1=240670&r2=240671&view=diff
==============================================================================
--- compiler-rt/trunk/test/cfi/multiple-inheritance.cpp (original)
+++ compiler-rt/trunk/test/cfi/multiple-inheritance.cpp Thu Jun 25 13:45:30 2015
@@ -25,6 +25,8 @@
// Tests that the CFI mechanism is sensitive to multiple inheritance and only
// permits calls via virtual tables for the correct base class.
+// REQUIRES: cxxabi
+
#include <stdio.h>
#include "utils.h"
Modified: compiler-rt/trunk/test/cfi/nvcall.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/cfi/nvcall.cpp?rev=240671&r1=240670&r2=240671&view=diff
==============================================================================
--- compiler-rt/trunk/test/cfi/nvcall.cpp (original)
+++ compiler-rt/trunk/test/cfi/nvcall.cpp Thu Jun 25 13:45:30 2015
@@ -20,6 +20,8 @@
// call to an object of the wrong class, by casting a pointer to such an object
// and attempting to make a call through it.
+// REQUIRES: cxxabi
+
#include <stdio.h>
#include "utils.h"
Modified: compiler-rt/trunk/test/cfi/overwrite.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/cfi/overwrite.cpp?rev=240671&r1=240670&r2=240671&view=diff
==============================================================================
--- compiler-rt/trunk/test/cfi/overwrite.cpp (original)
+++ compiler-rt/trunk/test/cfi/overwrite.cpp Thu Jun 25 13:45:30 2015
@@ -21,6 +21,8 @@
// any class, by manually overwriting the virtual table of an object and
// attempting to make a call through it.
+// REQUIRES: cxxabi
+
#include <stdio.h>
#include "utils.h"
Modified: compiler-rt/trunk/test/cfi/simple-fail.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/cfi/simple-fail.cpp?rev=240671&r1=240670&r2=240671&view=diff
==============================================================================
--- compiler-rt/trunk/test/cfi/simple-fail.cpp (original)
+++ compiler-rt/trunk/test/cfi/simple-fail.cpp Thu Jun 25 13:45:30 2015
@@ -56,6 +56,8 @@
// to an object of the wrong class but with a compatible vtable, by casting a
// pointer to such an object and attempting to make a call through it.
+// REQUIRES: cxxabi
+
#include <stdio.h>
#include "utils.h"
Modified: compiler-rt/trunk/test/cfi/vdtor.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/cfi/vdtor.cpp?rev=240671&r1=240670&r2=240671&view=diff
==============================================================================
--- compiler-rt/trunk/test/cfi/vdtor.cpp (original)
+++ compiler-rt/trunk/test/cfi/vdtor.cpp Thu Jun 25 13:45:30 2015
@@ -19,6 +19,8 @@
// Tests that the CFI enforcement also applies to virtual destructor calls made
// via 'delete'.
+// REQUIRES: cxxabi
+
#include <stdio.h>
#include "utils.h"
More information about the llvm-commits
mailing list