Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-3290

Test task and '-XstartOnFirstThread' makes gradle hang

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None

      Description

      I'm having problems with test run hanging when using the '-XstartOnFirstThread' flag.

      I want to run functional tests with UISpec4J, and using SWT which requires the '-XstartOnFirstThread' flag. Hence I use the configuration:

      test

      { jvmArgs '-XstartOnFirstThread' }

      But the tests hang indefinitely. The execution doesn't even get to the first line of the setup method in the tests (running junit).

      Can this be related to how gradle runs tests regarding threads? The hanging doesn't occur with maven and the surefire plugin (also using the -XstartOnFirstThread flag).

      https://discuss.gradle.org/t/gradle-test-task-and-xstartonfirstthread-makes-gradle-hang/9296

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            big-guy Sterling Greene
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: