From a88c89a426de0544e0e292c2104f579fbaa8828e Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Fri, 5 Feb 2016 11:22:20 +0100 Subject: [PATCH] Add maven profile to run tests with -Dio.netty.noUnsafe=true Motivation: We had reports of failures before when sun.misc.Unsafe was not present. We should run our tests also with it disable to ensure everything works even if sun.misc.Unsafe is not present on the system. Modifications: Add a new profile which allows to run tests without Unsafe (using -PnoUnsafe) Result: Better testing of netty for systems where sun.misc.Unsafe is not present. --- pom.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 80e66bdb20..3c4c5155a2 100644 --- a/pom.xml +++ b/pom.xml @@ -74,6 +74,12 @@ -Dio.netty.leakDetectionLevel=paranoid + + noUnsafe + + -Dio.netty.noUnsafe + + coverage @@ -211,6 +217,7 @@ -javaagent:${jetty.alpnAgent.path}=${jetty.alpnAgent.option} -D_ + -D_ -D_ @@ -740,7 +747,7 @@ **/TestUtil* random - ${argLine.common} ${argLine.alpnAgent} ${argLine.leak} ${argLine.coverage} + ${argLine.common} ${argLine.alpnAgent} ${argLine.leak} ${argLine.coverage} ${argLine.noUnsafe}