diff options
author | jeffhao <jeffhao@google.com> | 2012-11-26 16:02:12 -0800 |
---|---|---|
committer | jeffhao <jeffhao@google.com> | 2012-11-26 16:02:12 -0800 |
commit | 94d6df471a406a03bb1afba8ca3ae9c0fbf366b5 (patch) | |
tree | f89af30dbe4a23dc6f62bb17c3b0a36b778ade33 /test/051-thread | |
parent | 5bc252873e6e50f8257e33ca158d0e350413fcbf (diff) | |
download | art-94d6df471a406a03bb1afba8ca3ae9c0fbf366b5.zip art-94d6df471a406a03bb1afba8ca3ae9c0fbf366b5.tar.gz art-94d6df471a406a03bb1afba8ca3ae9c0fbf366b5.tar.bz2 |
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 <clinit> is complete for 084-class-init
Change-Id: I9ca306896a4bd10f453150fcf3965d9750fa0cbd
Diffstat (limited to 'test/051-thread')
-rw-r--r-- | test/051-thread/src/Main.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/051-thread/src/Main.java b/test/051-thread/src/Main.java index ea587af..911c739 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) { + } } } } |