Lucene - Core
  1. Lucene - Core
  2. LUCENE-2274

Catch exceptions in Threads created by JUnit tasks

    Details

    • Type: Test Test
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      On hudson we had several assertions failed in TestRAMDirectory, that were never caught by the error reportier in JUnit (as the test itsself did not fail). This patch adds a handler for uncaught exceptions to LuceneTestCase(J4) that let the test fail in tearDown().

      1. LUCENE-2274.patch
        6 kB
        Uwe Schindler
      2. LUCENE-2274.patch
        6 kB
        Uwe Schindler

        Issue Links

          Activity

          Hide
          Uwe Schindler added a comment -

          Committed Revision: 912376

          Show
          Uwe Schindler added a comment - Committed Revision: 912376
          Hide
          Michael McCandless added a comment -

          New patch looks good Uwe!

          Show
          Michael McCandless added a comment - New patch looks good Uwe!
          Hide
          Uwe Schindler added a comment -

          New patch with improvements from IRC (Mike McCandless):

          • revert for NRT to stdout
          • Chain the handlers
          Show
          Uwe Schindler added a comment - New patch with improvements from IRC (Mike McCandless): revert for NRT to stdout Chain the handlers
          Hide
          Uwe Schindler added a comment -

          The patch also fixes error reporting in the NRT test (somehow unrelated, but goes in same direction).

          Show
          Uwe Schindler added a comment - The patch also fixes error reporting in the NRT test (somehow unrelated, but goes in same direction).

            People

            • Assignee:
              Uwe Schindler
              Reporter:
              Uwe Schindler
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development