summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEtienne Bergeron <etienneb@google.com>2016-08-03 02:44:30 +0000
committerEtienne Bergeron <etienneb@google.com>2016-08-03 02:44:30 +0000
commit50b98dce2e062adb71a4397961eaaab56143e829 (patch)
tree24ca287501d3e176690797dbccaa552213f7b236
parent14633b5cd366f5c13c19de9a621f417e36b07440 (diff)
downloadbcm5719-llvm-50b98dce2e062adb71a4397961eaaab56143e829.tar.gz
bcm5719-llvm-50b98dce2e062adb71a4397961eaaab56143e829.zip
[compiler-rt] Fix broken interception unittest
Summary: This patch is fixing a broken unittest which make the win64 bot failing. The bug was introduce here: https://reviews.llvm.org/D23046 The interception code is not the same in 32-bit and in 64-bit. The added unittest can only be patched on 32-bits. Reviewers: rnk Subscribers: llvm-commits, chrisha Differential Revision: https://reviews.llvm.org/D23099 llvm-svn: 277560
-rw-r--r--compiler-rt/lib/interception/tests/interception_win_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/interception/tests/interception_win_test.cc b/compiler-rt/lib/interception/tests/interception_win_test.cc
index 67b40f70146..7d18ce99adc 100644
--- a/compiler-rt/lib/interception/tests/interception_win_test.cc
+++ b/compiler-rt/lib/interception/tests/interception_win_test.cc
@@ -481,7 +481,11 @@ TEST(Interception, PatchableFunction) {
EXPECT_TRUE(TestFunctionPatching(kPatchableCode3, override));
#endif
EXPECT_TRUE(TestFunctionPatching(kPatchableCode4, override));
+#if SANITIZER_WINDOWS64
+ EXPECT_FALSE(TestFunctionPatching(kPatchableCode5, override));
+#else
EXPECT_TRUE(TestFunctionPatching(kPatchableCode5, override));
+#endif
EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode1, override));
EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode2, override));
OpenPOWER on IntegriCloud