diff options
author | Eric Christopher <echristo@gmail.com> | 2017-03-17 21:56:09 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2017-03-17 21:56:09 +0000 |
commit | 97e140242d3085562afa1340578d5f531a82ad69 (patch) | |
tree | 01b83b21c101526f8f7a2bfe9d76b0cdc0d47284 /lib/interception/tests/interception_win_test.cc | |
parent | 55008eb10a1265ceff6252916850d451467451fd (diff) | |
parent | 708f1d628eae3fabb0f28c8469e73b3b57cdea0a (diff) | |
download | compiler-rt-97e140242d3085562afa1340578d5f531a82ad69.tar.gz |
Updating branches/google/testing to r297704
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/google/testing@298145 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/interception/tests/interception_win_test.cc')
-rw-r--r-- | lib/interception/tests/interception_win_test.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/interception/tests/interception_win_test.cc b/lib/interception/tests/interception_win_test.cc index 684ee0303..a705768d6 100644 --- a/lib/interception/tests/interception_win_test.cc +++ b/lib/interception/tests/interception_win_test.cc @@ -613,6 +613,13 @@ TEST(Interception, PatchableFunctionPadding) { EXPECT_FALSE(TestFunctionPatching(kUnpatchableCode6, override, prefix)); } +TEST(Interception, EmptyExportTable) { + // We try to get a pointer to a function from an executable that doesn't + // export any symbol (empty export table). + uptr FunPtr = InternalGetProcAddress((void *)GetModuleHandleA(0), "example"); + EXPECT_EQ(0U, FunPtr); +} + } // namespace __interception #endif // SANITIZER_WINDOWS |