- String[] expect = new String[t.child(2).size()];
- for(int j=0; j<t.child(2).size(); j++)
- expect[j] = stringifyChildren(t.child(2).child(j));
+ String[] expect = !"ignore output;".equals(t.child(2).head()) ? new String[t.child(2).size()] : null;
+ if (expect != null)
+ for(int j=0; j<t.child(2).size(); j++)
+ expect[j] = stringifyChildren(t.child(2).child(j));