libjava.exp: Add "xfail-byte-output" and "xfail-source-output".

* lib/libjava.exp: Add "xfail-byte-output" and "xfail-source-output".
	Don't display expected and actual output for a failed output test.

	* libjava.lang/ArrayStore.java: New file.
	* libjava.lang/ArrayStore.out: New file.
	* libjava.lang/ArrayStore.xfail: New file. xfail-byte-output.
	* libjava.lang/ArrayStore2.java: New file.
	* libjava.lang/ArrayStore2.out: New file.
	* libjava.lang/ArrayStore2.xfail: New file. xfail-source-output.

From-SVN: r49888
This commit is contained in:
Bryce McKinlay 2002-02-20 04:14:15 +00:00 committed by Bryce McKinlay
parent 6ea868b758
commit a2139e0c48
8 changed files with 117 additions and 4 deletions

View file

@ -0,0 +1,52 @@
public class ArrayStore
{
public static void main(String[] args)
{
ArrayStore s = new ArrayStore();
/* Check that bounds check takes precedence over array store check. */
try
{
s.a(new String[1]);
}
catch (Exception x)
{
System.out.println (x.getClass().getName());
}
try
{
s.a(new String[2]);
}
catch (Exception x)
{
System.out.println (x.getClass().getName());
}
/* Check that += operator on String[] element works and throws bounds
exception. */
try
{
s.b(new String[1]);
}
catch (Exception x)
{
System.out.println (x.getClass().getName());
}
String[] sb = new String[2];
sb[1] = "foo";
s.b(sb);
System.out.println (sb[1]);
}
void a(Object[] oa)
{
oa[1] = new Integer(2);
}
void b(String[] sa)
{
sa[1] += "bar";
}
}