Skip to content

Commit

Permalink
Undo two transaction in execUnloading Enum
Browse files Browse the repository at this point in the history
Because we're adding RAII in TCling::UpdateEnumConstant, transaction is
separated and we have to unload two transaction rather than one.
  • Loading branch information
yamaguchi1024 authored and vgvassilev committed May 18, 2018
1 parent 6b6f806 commit 732d4a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/meta/execUnloading.C
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void execUnloading(){
} else {
cerr << "<<MyEnum>> is declared, but not valid.\n";
}
gROOT->ProcessLine(".undo 1");
gROOT->ProcessLine(".undo 2");
// Verify the enum constants are invalidated from the list of globals.
TGlobal* enumConstVar = (TGlobal*)gROOT->GetListOfGlobals()->FindObject("c1");
if (enumConstVar != NULL) {
Expand Down

0 comments on commit 732d4a3

Please sign in to comment.