summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ExecutionEngine
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2017-05-14 18:35:38 +0000
committerDimitry Andric <dimitry@andric.com>2017-05-14 18:35:38 +0000
commit4043373e840e6e635c27fa1d149653e574832e62 (patch)
tree002618d5a13663b6e159c8dc59ebb4b465fbbefa /llvm/unittests/ExecutionEngine
parentee97c5f0125e8f07ee53934bf607c5d518959cac (diff)
downloadbcm5719-llvm-4043373e840e6e635c27fa1d149653e574832e62.tar.gz
bcm5719-llvm-4043373e840e6e635c27fa1d149653e574832e62.zip
Fix DynamicLibraryTest.cpp on FreeBSD and NetBSD
Summary: After rL301562, on FreeBSD the DynamicLibrary unittests fail, because the test uses getMainExecutable("DynamicLibraryTests", Ptr), and since the path does not contain any slashes, retrieving the main executable will not work. Reimplement getMainExecutable() for FreeBSD and NetBSD using sysctl(3), which is more reliable than fiddling with relative or absolute paths. Also add retrieval of the original argv[] from the GoogleTest framework, to use as a fallback for other OSes. Reviewers: emaste, marsupial, hans, krytarowski Reviewed By: krytarowski Subscribers: krytarowski, llvm-commits Differential Revision: https://reviews.llvm.org/D33171 llvm-svn: 303015
Diffstat (limited to 'llvm/unittests/ExecutionEngine')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud