diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-01 11:07:31 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-01 11:07:31 +0200 |
commit | e9d055bf67d2ad600d2efa58a4c8b8bbcedf348c (patch) | |
tree | 1bf7c48a1457ef04f338eda1c70da2c1e2b23e70 /dbaccess/qa | |
parent | bd2f71fc265d5bf7a6b490a49549c1233d4bdc4d (diff) |
Do not lose AssertionError from sub-threads
Change-Id: I8ca7194be6d22b72b73e76e5067273090b087b96
Diffstat (limited to 'dbaccess/qa')
-rw-r--r-- | dbaccess/qa/complex/dbaccess/RowSet.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/dbaccess/qa/complex/dbaccess/RowSet.java b/dbaccess/qa/complex/dbaccess/RowSet.java index 5ee5ea2456b3..2763ac313648 100644 --- a/dbaccess/qa/complex/dbaccess/RowSet.java +++ b/dbaccess/qa/complex/dbaccess/RowSet.java @@ -69,6 +69,8 @@ public class RowSet extends TestCase XPropertySet m_rowSetProperties; XParametersSupplier m_paramsSupplier; + private final Object failedResultSetMovementStressGuard = new Object(); + private String failedResultSetMovementStressMessages = ""; private class ResultSetMovementStress implements Runnable { @@ -100,7 +102,12 @@ public class RowSet extends TestCase } catch (Exception e) { - fail("ResultSetMovementStress(" + m_id + ") failed at i=" + i + ": " + e); + synchronized (failedResultSetMovementStressGuard) { + failedResultSetMovementStressMessages + = failedResultSetMovementStressMessages + + "ResultSetMovementStress(" + m_id + ") failed at i=" + + i + ": " + e + "\n"; + } } } } @@ -383,6 +390,9 @@ public class RowSet extends TestCase { threads[i].join(); } + synchronized (failedResultSetMovementStressGuard) { + assertEquals("", failedResultSetMovementStressMessages); + } } catch (Exception e) { |