Skip to content

Commit

Permalink
Merge pull request #8819 from vespa-engine/toregge/adjust-expected-li…
Browse files Browse the repository at this point in the history
…brary-load-failed-exception-message-for-darwin

Failure to load shared library gives a different error message on darwin.
  • Loading branch information
baldersheim committed Mar 18, 2019
2 parents ff63f4e + 7c79340 commit 91e948e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions searchcorespi/src/tests/plugin/plugin_test.cpp
Expand Up @@ -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") {
Expand Down

0 comments on commit 91e948e

Please sign in to comment.