diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2019-03-18 12:56:42 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2019-03-18 12:56:42 +0100 |
commit | 7c79340ff7e979626270d750d26aa9692f37498b (patch) | |
tree | 4a66bfff5a446054c529f4bdc9727805306c6dba /searchcorespi | |
parent | e52b3ab39a5ae05fc1b1d538b6efa852f321a2f2 (diff) |
Failure to load shared library gives a different error message
on darwin.
Diffstat (limited to 'searchcorespi')
-rw-r--r-- | searchcorespi/src/tests/plugin/plugin_test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/searchcorespi/src/tests/plugin/plugin_test.cpp b/searchcorespi/src/tests/plugin/plugin_test.cpp index 7c7a9deeced..733c2834c24 100644 --- a/searchcorespi/src/tests/plugin/plugin_test.cpp +++ b/searchcorespi/src/tests/plugin/plugin_test.cpp @@ -15,9 +15,15 @@ TEST("require that plugins can be loaded.") { TEST("require that non-existent plugin causes failure") { FactoryLoader fl; +#ifdef __APPLE__ + EXPECT_EXCEPTION(fl.create("no-such-plugin"), + vespalib::IllegalArgumentException, + "image not found"); +#else EXPECT_EXCEPTION(fl.create("no-such-plugin"), vespalib::IllegalArgumentException, "cannot open shared object file"); +#endif } TEST("require that missing factory function causes failure") { |