Handle unsupported varargs tests on Unix gracefully. (dotnet/coreclr#10794)
authorJim Ma <mazong1123@gmail.com>
Fri, 7 Apr 2017 15:33:21 +0000 (23:33 +0800)
committerJan Kotas <jkotas@microsoft.com>
Fri, 7 Apr 2017 15:33:21 +0000 (08:33 -0700)
commit813480260f15ab76267a4a4841461b73cb78c5eb
treea69c7b6a064a1a24c43d2a7820bbf58051017596
parent8a93a4e0656c7792b4ea738a6844959a7250e45d
Handle unsupported varargs tests on Unix gracefully. (dotnet/coreclr#10794)

Some of mcc_i* tests caused segmentation faults on Unix. This commit make these tests exit by throwing a System.EntryPointNotFoundException exception instead of causing a segmentation fault.

Fix dotnet/coreclr#9530

Commit migrated from https://github.com/dotnet/coreclr/commit/a86df0d0abe3ca5a7eed1db673c4ea48cfc3c61c
src/coreclr/src/pal/src/loader/module.cpp
src/coreclr/src/vm/method.cpp