diff options
author | Bryce McKinlay <mckinlay@redhat.com> | 2006-07-07 19:33:02 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2006-07-07 20:33:02 +0100 |
commit | bde47e079650086c06cd4f15105dca0ecde1f06b (patch) | |
tree | 8f8b07237ed0821b60fe1218dce5090759744287 /libjava/testsuite/libjava.lang | |
parent | 96f9772f91ecdddc7a403480377399f8f22a77db (diff) | |
download | gcc-bde47e079650086c06cd4f15105dca0ecde1f06b.zip gcc-bde47e079650086c06cd4f15105dca0ecde1f06b.tar.gz gcc-bde47e079650086c06cd4f15105dca0ecde1f06b.tar.bz2 |
StackTrace2.java: Renamed from StackTrace.java.
2006-07-07 Bryce McKinlay <mckinlay@redhat.com>
Geoffrey Keating <geoffk@apple.com>
* testsuite/libjava.lang/StackTrace2.java: Renamed from
StackTrace.java. Changed class name.
* testsuite/libjava.lang/StackTrace2.out: Renamed from
StackTrace.out. Updated for new class name.
Co-Authored-By: Geoffrey Keating <geoffk@apple.com>
From-SVN: r115268
Diffstat (limited to 'libjava/testsuite/libjava.lang')
-rw-r--r-- | libjava/testsuite/libjava.lang/StackTrace2.java | 12 | ||||
-rw-r--r-- | libjava/testsuite/libjava.lang/StackTrace2.out | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/libjava/testsuite/libjava.lang/StackTrace2.java b/libjava/testsuite/libjava.lang/StackTrace2.java index b16e297..e06db0c 100644 --- a/libjava/testsuite/libjava.lang/StackTrace2.java +++ b/libjava/testsuite/libjava.lang/StackTrace2.java @@ -1,7 +1,7 @@ // Check that stack trace's work, and stack trace line numbers, if available, // are correct. -public class StackTrace +public class StackTrace2 { public static void main(String[] args) { @@ -37,10 +37,10 @@ public class StackTrace static void checkTrace(StackTraceElement[] trace) { System.out.println("Trace length = " + trace.length); - checkLine(trace[0], "StackTrace$Inner", "doCrash", 33); - checkLine(trace[1], "StackTrace$Inner", "<init>", 28); - checkLine(trace[2], "StackTrace", "a", 21); - checkLine(trace[3], "StackTrace", "main", 10); + checkLine(trace[0], "StackTrace2$Inner", "doCrash", 33); + checkLine(trace[1], "StackTrace2$Inner", "<init>", 28); + checkLine(trace[2], "StackTrace2", "a", 21); + checkLine(trace[3], "StackTrace2", "main", 10); } static void checkLine(StackTraceElement frame, String expected_cl, @@ -67,7 +67,7 @@ public class StackTrace // for stack traces, or when no debug info is available. if (frame.getLineNumber() < 0 || (frame.getLineNumber() == expected_line - && frame.getFileName().equals("StackTrace.java"))) + && frame.getFileName().equals("StackTrace2.java"))) System.out.println("OK"); else System.out.println("FAIL - expected " + expected_line + ", got: " + diff --git a/libjava/testsuite/libjava.lang/StackTrace2.out b/libjava/testsuite/libjava.lang/StackTrace2.out index 417d471..90cfd48 100644 --- a/libjava/testsuite/libjava.lang/StackTrace2.out +++ b/libjava/testsuite/libjava.lang/StackTrace2.out @@ -1,5 +1,5 @@ Trace length = 4 -StackTrace$Inner.doCrash:OK -StackTrace$Inner.<init>:OK -StackTrace.a:OK -StackTrace.main:OK +StackTrace2$Inner.doCrash:OK +StackTrace2$Inner.<init>:OK +StackTrace2.a:OK +StackTrace2.main:OK |