Skip to content

Commit 4119b41

Browse files
committed
fixup! Add a simple post-install test.
1 parent 54771c4 commit 4119b41

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

test/PostInstall/readHSimple.cxx

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
#include <TH1.h>
22
#include <TFile.h>
33

4-
int main() {
5-
TFile file("hsimple.root", "READ");
6-
if (!file.IsOpen()) return 1;
4+
int main()
5+
{
6+
TFile file("hsimple.root", "READ");
7+
if (!file.IsOpen())
8+
return 1;
79

8-
TH1 * histo = file.Get<TH1>("hpx");
9-
if (!histo) return 2;
10+
TH1 *histo = file.Get<TH1>("hpx");
11+
if (!histo)
12+
return 2;
1013

11-
if (histo->GetEntries() != 25000) return 3;
12-
histo->Print();
14+
if (histo->GetEntries() != 25000)
15+
return 3;
16+
histo->Print();
1317

14-
return 0;
18+
return 0;
1519
}

0 commit comments

Comments
 (0)