summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2018-09-03 08:33:24 +0000
committerDan Liew <dan@su-root.co.uk>2018-09-03 08:33:24 +0000
commit4218a00697347a1da62930ca063417099d73d4cb (patch)
tree8decb326942277afeb68365d4c63141d3cfa6294
parentf03e049234297259417314d18b23ce068af46a56 (diff)
downloadbcm5719-llvm-4218a00697347a1da62930ca063417099d73d4cb.tar.gz
bcm5719-llvm-4218a00697347a1da62930ca063417099d73d4cb.zip
[UBSan] Add missing `%run` prefixes to Pointer tests.
Summary: rdar://problem/41126835 Reviewers: vsk, kubamracek Subscribers: #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D51271 llvm-svn: 341298
-rw-r--r--compiler-rt/test/ubsan/TestCases/Pointer/index-overflow.cpp6
-rw-r--r--compiler-rt/test/ubsan/TestCases/Pointer/unsigned-index-expression.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/test/ubsan/TestCases/Pointer/index-overflow.cpp b/compiler-rt/test/ubsan/TestCases/Pointer/index-overflow.cpp
index eb7f95e85c2..f9b1fea08c9 100644
--- a/compiler-rt/test/ubsan/TestCases/Pointer/index-overflow.cpp
+++ b/compiler-rt/test/ubsan/TestCases/Pointer/index-overflow.cpp
@@ -1,7 +1,7 @@
// RUN: %clangxx -fsanitize=pointer-overflow %s -o %t
-// RUN: %t 1 2>&1 | FileCheck %s --check-prefix=ERR
-// RUN: %t 0 2>&1 | FileCheck %s --check-prefix=SAFE
-// RUN: %t -1 2>&1 | FileCheck %s --check-prefix=SAFE
+// RUN: %run %t 1 2>&1 | FileCheck %s --check-prefix=ERR
+// RUN: %run %t 0 2>&1 | FileCheck %s --check-prefix=SAFE
+// RUN: %run %t -1 2>&1 | FileCheck %s --check-prefix=SAFE
#include <stdio.h>
#include <stdint.h>
diff --git a/compiler-rt/test/ubsan/TestCases/Pointer/unsigned-index-expression.cpp b/compiler-rt/test/ubsan/TestCases/Pointer/unsigned-index-expression.cpp
index 0002c713f86..5a1432625a5 100644
--- a/compiler-rt/test/ubsan/TestCases/Pointer/unsigned-index-expression.cpp
+++ b/compiler-rt/test/ubsan/TestCases/Pointer/unsigned-index-expression.cpp
@@ -1,5 +1,5 @@
// RUN: %clangxx -std=c++11 -fsanitize=pointer-overflow %s -o %t
-// RUN: %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
int main(int argc, char *argv[]) {
char c;
OpenPOWER on IntegriCloud