From d32f1aa17fba01f4f9eeaa0890ea69d05d5d2b3e Mon Sep 17 00:00:00 2001 From: Axel Naumann <Axel.Naumann@cern.ch> Date: Thu, 14 Feb 2019 11:07:39 +0100 Subject: [PATCH] [stress] Inject -I to find the dictionary header at runtime. --- test/stress.cxx | 3 +++ test/stressIOPlugins.cxx | 3 +++ test/stressMathCore.cxx | 3 +++ 3 files changed, 9 insertions(+) diff --git a/test/stress.cxx b/test/stress.cxx index 0dd8fa1b5ec..3fd9c3dceda 100644 --- a/test/stress.cxx +++ b/test/stress.cxx @@ -120,6 +120,9 @@ void cleanup(); int main(int argc, char **argv) { + std::string inclRootSys = ("-I" + TROOT::GetRootSys() + "/test").Data(); + TROOT::AddExtraInterpreterArgs({inclRootSys}); + gROOT->SetBatch(); TApplication theApp("App", &argc, argv); gBenchmark = new TBenchmark(); diff --git a/test/stressIOPlugins.cxx b/test/stressIOPlugins.cxx index 312ab187afc..5cc5abb6ed8 100644 --- a/test/stressIOPlugins.cxx +++ b/test/stressIOPlugins.cxx @@ -88,6 +88,9 @@ void cleanup(); int main(int argc, char **argv) { + std::string inclRootSys = ("-I" + TROOT::GetRootSys() + "/test").Data(); + TROOT::AddExtraInterpreterArgs({inclRootSys}); + gROOT->SetBatch(); TApplication theApp("App", &argc, argv); const char *proto = 0; diff --git a/test/stressMathCore.cxx b/test/stressMathCore.cxx index 0e306d282e1..2225d5f178a 100644 --- a/test/stressMathCore.cxx +++ b/test/stressMathCore.cxx @@ -1583,6 +1583,9 @@ int stressMathCore(double nscale = 1) { int main(int argc,const char *argv[]) { + std::string inclRootSys = ("-I" + TROOT::GetRootSys() + "/test").Data(); + TROOT::AddExtraInterpreterArgs({inclRootSys}); + double nscale = 1; if (argc > 1) { nscale = atof(argv[1]); -- GitLab