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
This commit is contained in:
parent
96f9772f91
commit
bde47e0796
3 changed files with 18 additions and 10 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
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.
|
||||||
|
|
||||||
2006-07-07 Ranjit Mathew <rmathew@gcc.gnu.org>
|
2006-07-07 Ranjit Mathew <rmathew@gcc.gnu.org>
|
||||||
|
|
||||||
* sysdep/i386/backtrace.h (fallback_backtrace): Scan for a function's
|
* sysdep/i386/backtrace.h (fallback_backtrace): Scan for a function's
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// Check that stack trace's work, and stack trace line numbers, if available,
|
// Check that stack trace's work, and stack trace line numbers, if available,
|
||||||
// are correct.
|
// are correct.
|
||||||
|
|
||||||
public class StackTrace
|
public class StackTrace2
|
||||||
{
|
{
|
||||||
public static void main(String[] args)
|
public static void main(String[] args)
|
||||||
{
|
{
|
||||||
|
@ -37,10 +37,10 @@ public class StackTrace
|
||||||
static void checkTrace(StackTraceElement[] trace)
|
static void checkTrace(StackTraceElement[] trace)
|
||||||
{
|
{
|
||||||
System.out.println("Trace length = " + trace.length);
|
System.out.println("Trace length = " + trace.length);
|
||||||
checkLine(trace[0], "StackTrace$Inner", "doCrash", 33);
|
checkLine(trace[0], "StackTrace2$Inner", "doCrash", 33);
|
||||||
checkLine(trace[1], "StackTrace$Inner", "<init>", 28);
|
checkLine(trace[1], "StackTrace2$Inner", "<init>", 28);
|
||||||
checkLine(trace[2], "StackTrace", "a", 21);
|
checkLine(trace[2], "StackTrace2", "a", 21);
|
||||||
checkLine(trace[3], "StackTrace", "main", 10);
|
checkLine(trace[3], "StackTrace2", "main", 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void checkLine(StackTraceElement frame, String expected_cl,
|
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.
|
// for stack traces, or when no debug info is available.
|
||||||
if (frame.getLineNumber() < 0
|
if (frame.getLineNumber() < 0
|
||||||
|| (frame.getLineNumber() == expected_line
|
|| (frame.getLineNumber() == expected_line
|
||||||
&& frame.getFileName().equals("StackTrace.java")))
|
&& frame.getFileName().equals("StackTrace2.java")))
|
||||||
System.out.println("OK");
|
System.out.println("OK");
|
||||||
else
|
else
|
||||||
System.out.println("FAIL - expected " + expected_line + ", got: " +
|
System.out.println("FAIL - expected " + expected_line + ", got: " +
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Trace length = 4
|
Trace length = 4
|
||||||
StackTrace$Inner.doCrash:OK
|
StackTrace2$Inner.doCrash:OK
|
||||||
StackTrace$Inner.<init>:OK
|
StackTrace2$Inner.<init>:OK
|
||||||
StackTrace.a:OK
|
StackTrace2.a:OK
|
||||||
StackTrace.main:OK
|
StackTrace2.main:OK
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue