Skip to content
Snippets Groups Projects
Commit c01912c1 authored by Danilo Piparo's avatar Danilo Piparo
Browse files

[RDF] TEntryList test: re-enable TChain MT test-case

and correct wrong entry list entry numbers.
parent ac90c2f1
No related branches found
No related tags found
No related merge requests found
...@@ -62,18 +62,18 @@ void TestChainWithEntryList(bool isMT = false) ...@@ -62,18 +62,18 @@ void TestChainWithEntryList(bool isMT = false)
const auto nEntries = 10; const auto nEntries = 10;
const auto treename = "t"; const auto treename = "t";
const auto file1 = "rdfentrylist1.root"; const auto file1 = "rdfentrylist1.root";
MakeInputFile(file1, nEntries);
const auto file2 = "rdfentrylist2.root"; const auto file2 = "rdfentrylist2.root";
MakeInputFile(file1, nEntries);
MakeInputFile(file2, nEntries); MakeInputFile(file2, nEntries);
RMTRAII gomt(isMT); RMTRAII gomt(isMT);
TEntryList elist1("e", "e", treename, file1); TEntryList elist1("e", "e", treename, file1);
elist1.Enter(0); elist1.Enter(0);
elist1.Enter(2 * nEntries - 1); elist1.Enter(nEntries - 1);
TEntryList elist2("e", "e", treename, file2); TEntryList elist2("e", "e", treename, file2);
elist2.Enter(0); elist2.Enter(0);
elist2.Enter(2 * nEntries - 1); elist2.Enter(nEntries - 1);
// make a TEntryList that contains two TEntryLists in its list of TEntryLists, // make a TEntryList that contains two TEntryLists in its list of TEntryLists,
// as required by TChain (see TEntryList's doc) // as required by TChain (see TEntryList's doc)
...@@ -104,7 +104,7 @@ TEST(RDFEntryList, Tree) ...@@ -104,7 +104,7 @@ TEST(RDFEntryList, Tree)
} }
#ifdef R__USE_IMT #ifdef R__USE_IMT
TEST(RDFEntryList, DISABLED_ChainMT) TEST(RDFEntryList, ChainMT)
{ {
TestChainWithEntryList(true); TestChainWithEntryList(true);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment