Skip to content

Commit

Permalink
Suppress stderr output in CT tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Sep 13, 2013
1 parent 5d0b185 commit 5e4a560
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.overturetool.vdmj.Settings;
import org.overturetool.vdmj.commands.DebuggerReader;
import org.overturetool.vdmj.lex.LexLocation;
import org.overturetool.vdmj.messages.Console;
import org.overturetool.vdmj.runtime.Context;
import org.overturetool.vdmj.runtime.ContextException;
import org.overturetool.vdmj.statements.Statement;
Expand Down Expand Up @@ -185,6 +186,13 @@ protected void handleSignal(Signal sig, Context lctxt, LexLocation location)
super.handleSignal(sig, lctxt, location);
}

@Override
public void setException(Exception e)
{
// Don't print out the error for CT
exception = e;
}

public List<Object> getList()
{
return result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class MainThread extends SchedulablePoolThread
public final Expression expression;

private Value result = new UndefinedValue();
private Exception exception = null;
protected Exception exception = null;

public MainThread(Expression expr, Context ctxt)
{
Expand Down

0 comments on commit 5e4a560

Please sign in to comment.