summaryrefslogtreecommitdiff
path: root/test/1929-exception-catch-exception/src
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2018-02-13 15:09:44 -0800
committer Alex Light <allight@google.com> 2018-02-13 23:13:27 +0000
commit9c5702582b8f0ce2a0ce536dff7e02de10317163 (patch)
tree0c4f07232fd7063323233739784e504dc2cb9a9c /test/1929-exception-catch-exception/src
parent0eacf1be06677e7148af370ce7da5d477687cb9e (diff)
Ensure that all StackTrace.java files are identical for CTS
Also need to update some of the expectations since they include line numbers from the StackTrace.java file. These files all need to be identical in order for us to use these tests with CTS. Fix the single difference between them. Test: ./test.py --host -j50 Test: for i in `find . -name "StackTrace.java" -type f`; do diff $i test/1912-get-set-local-primitive/src/art/StackTrace.java; done Bug: 73252141 Change-Id: Ibd412b26e3ad4c82a625a2a8cc3b73ed43e89a29
Diffstat (limited to 'test/1929-exception-catch-exception/src')
-rw-r--r--test/1929-exception-catch-exception/src/art/StackTrace.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/1929-exception-catch-exception/src/art/StackTrace.java b/test/1929-exception-catch-exception/src/art/StackTrace.java
index b12c3df66b..2ea2f201e8 100644
--- a/test/1929-exception-catch-exception/src/art/StackTrace.java
+++ b/test/1929-exception-catch-exception/src/art/StackTrace.java
@@ -53,7 +53,8 @@ public class StackTrace {
// consistent we will suspend for the RI.
boolean suspend_thread =
!System.getProperty("java.vm.name").equals("Dalvik") &&
- !thr.equals(Thread.currentThread());
+ !thr.equals(Thread.currentThread()) &&
+ !Suspension.isSuspended(thr);
if (suspend_thread) {
Suspension.suspend(thr);
}