Tim,
Usually I set a SecurityManager that prevents calls to System.exit. You
will have to allow Surefire (and probably also your IDE test runner) to
allow to use System.exit.

Enrico

Il giorno mer 28 lug 2021 alle ore 16:18 Tim Allison <talli...@apache.org>
ha scritto:

> All,
>
>   I'm trying to upgrade the surefire plugin in Apache Tika, and I'm
> running into "forked vm terminated without properly saying goodbye"
> [0].
>
>   Tika uses a bunch of dependencies we have no control over.  At one
> point, we had a parser with a "feature" that called System.exit.  We
> have code that defends against this kind of thing by forking and
> monitoring the forked process for early termination, and we'd like to
> test this forking code.  Is there any way to test this with more
> recent versions of the surefire plugin, or is there a recommended
> workaround?
>
>   Thank you.
>
>             Best,
>
>                   Tim
>
> [0]
> http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#vm-termination
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to