summaryrefslogtreecommitdiff
path: root/lib/interception/tests/interception_win_test.cc
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2017-03-17 21:56:09 +0000
committerEric Christopher <echristo@gmail.com>2017-03-17 21:56:09 +0000
commit97e140242d3085562afa1340578d5f531a82ad69 (patch)
tree01b83b21c101526f8f7a2bfe9d76b0cdc0d47284 /lib/interception/tests/interception_win_test.cc
parent55008eb10a1265ceff6252916850d451467451fd (diff)
parent708f1d628eae3fabb0f28c8469e73b3b57cdea0a (diff)
downloadcompiler-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.cc7
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