diff options
author | Etienne Bergeron <etienneb@google.com> | 2016-08-03 02:44:30 +0000 |
---|---|---|
committer | Etienne Bergeron <etienneb@google.com> | 2016-08-03 02:44:30 +0000 |
commit | 35b5cec19b359abba312448fd32fa0cb229ce92e (patch) | |
tree | 68a90d55e8553606eafd4ef6594c202b6de22d89 /lib/interception/tests | |
parent | c19a416b07b94551e7a6f9db7b1578b324324c78 (diff) | |
download | compiler-rt-35b5cec19b359abba312448fd32fa0cb229ce92e.tar.gz |
[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
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@277560 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/interception/tests')
-rw-r--r-- | lib/interception/tests/interception_win_test.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/interception/tests/interception_win_test.cc b/lib/interception/tests/interception_win_test.cc index 67b40f701..7d18ce99a 100644 --- a/lib/interception/tests/interception_win_test.cc +++ b/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)); |