Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions release_tests/utilities/parameters.C
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <sstream>
#include <string>
#include <vector>
#include "TInterpreter.h"

/*
* Helper for ROOT macros: load libVAnaSum from environment.
Expand Down Expand Up @@ -56,17 +57,19 @@ bool loadVAnaSumLibrary()
{
// Use gROOT->ProcessLine to properly load the library and its dictionaries
string loadCmd = "R__LOAD_LIBRARY(" + iLibPath + ");";
Longptr_t result = gROOT->ProcessLine( loadCmd.c_str() );
if( result >= 0 )
TInterpreter::EErrorCode error = TInterpreter::kNoError;
Longptr_t result = gROOT->ProcessLine( loadCmd.c_str(), &error );
if( error == TInterpreter::kNoError && result >= 0 )
{
iLibraryLoaded = true;
return true;
}
}

// Try with just the library name
Longptr_t result = gROOT->ProcessLine( "R__LOAD_LIBRARY(libVAnaSum.so);" );
if( result >= 0 )
Int_t error = TInterpreter::kNoError;
Longptr_t result = gROOT->ProcessLine( "R__LOAD_LIBRARY(libVAnaSum.so);", &error );
if( error == TInterpreter::kNoError && result >= 0 )
{
iLibraryLoaded = true;
return true;
Expand Down
Loading