fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / libjava / testsuite / libjava.mauve / DejaGNUTestHarness.java
blob91817e6fa1d197ee8c17088f0c25ba4ff2295cb9
1 // Copyright (c) 1998, 1999 Free Software Foundation
3 // Written by Tom Tromey <tromey@cygnus.com>
5 import gnu.testlet.*;
7 public class DejaGNUTestHarness extends SimpleTestHarness
9 static String dejasrcdir;
11 public String getSourceDirectory ()
13 return dejasrcdir;
16 private DejaGNUTestHarness ()
18 super (/* verbose */ true, /* debug */ false);
21 public static void main (String[] args)
23 dejasrcdir = args.length > 0 ? args[0] : "";
24 DejaGNUTestHarness harness = new DejaGNUTestHarness ();
25 // This might seem weird, given that we check args.length above.
26 // However, in some cases the expect code rewrites this runtest
27 // invocation to have an explicit name for the test to run.
28 harness.runtest (args[1]);
29 System.exit(harness.done());