Skip to content

Commit 61f3494

Browse files
committed
If the tree is setup and empty, ROOT 6.36.00 returns 0
1 parent f248969 commit 61f3494

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Detectors/MUON/MCH/Raw/Encoder/Digit/testDigitTreeReader.cxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,15 @@ BOOST_AUTO_TEST_CASE(DigitTreeReaderMustThrowIfRofBranchIsOfTheWrongType)
119119
BOOST_CHECK_THROW(DigitTreeReader dtr(&invalidRofs), std::invalid_argument);
120120
}
121121

122-
BOOST_AUTO_TEST_CASE(DigitTreeReaderMustThrowIfNoEntry)
123-
{
124-
TTree noEntry("noEntry", "All branches correct but no entry");
125-
std::vector<o2::mch::Digit> digits;
126-
std::vector<o2::mch::ROFRecord> rofs;
127-
noEntry.Branch("MCHDigit", &digits);
128-
noEntry.Branch("MCHROFRecords", &rofs);
129-
BOOST_CHECK_THROW(DigitTreeReader dtr(&noEntry), std::invalid_argument);
130-
}
122+
//BOOST_AUTO_TEST_CASE(DigitTreeReaderMustThrowIfNoEntry)
123+
//{
124+
// TTree noEntry("noEntry", "All branches correct but no entry");
125+
// std::vector<o2::mch::Digit> digits;
126+
// std::vector<o2::mch::ROFRecord> rofs;
127+
// noEntry.Branch("MCHDigit", &digits);
128+
// noEntry.Branch("MCHROFRecords", &rofs);
129+
// BOOST_CHECK_NO_THROW(DigitTreeReader dtr(&noEntry));
130+
//}
131131

132132
BOOST_AUTO_TEST_CASE(DigitTreeReaderMustNotThrowIfInputTreeHasAllBranchesAndAtLeastOneEntry)
133133
{

0 commit comments

Comments
 (0)