From 94d6df471a406a03bb1afba8ca3ae9c0fbf366b5 Mon Sep 17 00:00:00 2001 From: jeffhao Date: Mon, 26 Nov 2012 16:02:12 -0800 Subject: Fixes to make all run-tests except 051-thread work. - Moved exception delivery into common method DeliverException - Renamed old DeliverException to QuickDeliverException since it is only used by quick - Fixed null checks for arrays returned by GetReference - Standardized ArrayStoreException error message - Added additional sleeps to ensure threads stay alive long enough in 051-thread, and that is complete for 084-class-init Change-Id: I9ca306896a4bd10f453150fcf3965d9750fa0cbd --- test/051-thread/src/Main.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/051-thread/src/Main.java') diff --git a/test/051-thread/src/Main.java b/test/051-thread/src/Main.java index ea587af90e..911c739d92 100644 --- a/test/051-thread/src/Main.java +++ b/test/051-thread/src/Main.java @@ -67,6 +67,10 @@ public class Main { synchronized (MyThread.class) { ++mCount; } + try { + sleep(1000); + } catch (Exception ex) { + } } } } -- cgit v1.2.3-59-g8ed1b