Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test cases unable to add plugins #327

Open
nathanwbrei opened this issue Jul 30, 2024 · 0 comments
Open

Test cases unable to add plugins #327

nathanwbrei opened this issue Jul 30, 2024 · 0 comments

Comments

@nathanwbrei
Copy link
Collaborator

When I attempt to add a test case such as

TEST_CASE("JanadotSetsRecordCallStackParam") {
    JApplication app;
    app.AddPlugin("janadot");
    app.AddPlugin("JTest");
    app.SetParameterValue("jana:plugin_path", "src/plugins/janadot:src/plugins/JTest");
    app.Initialize();
    REQUIRE(app.GetParameterValue<bool>("record_call_stack") == true);
}

I get an exception during plugin loading saying that dlopen can't find the symbol japp. If I attempt to load JTest first, it can't find the symbol JFactory::Summarize(JComponentSummary&)
Right now jana-unit-tests is linked against the jana2 target.
If I link it against jana2_shared_lib, the problem goes away and the test case passes. However, programs/jana is linked against the jana2 target, and obviously doesn't have the same problem. Test cases ought to pass regardless of whether they are linked against JANA2 statically or dynamically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant