From 0963a1c2870b6c2feb1894c56598505fd1aacfa9 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Wed, 8 Mar 2017 10:38:00 -0700 Subject: [PATCH] Fixes to windows build --- .../java/org/eclipse/jetty/server/AsyncRequestReadTest.java | 2 +- .../jetty/server/handler/AllowSymLinkAliasCheckerTest.java | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/jetty-server/src/test/java/org/eclipse/jetty/server/AsyncRequestReadTest.java b/jetty-server/src/test/java/org/eclipse/jetty/server/AsyncRequestReadTest.java index 4698e4c17b4..fb8a5025694 100644 --- a/jetty-server/src/test/java/org/eclipse/jetty/server/AsyncRequestReadTest.java +++ b/jetty-server/src/test/java/org/eclipse/jetty/server/AsyncRequestReadTest.java @@ -359,7 +359,7 @@ public class AsyncRequestReadTest break; out.write(c); } - out.println(); + out.write('\n'); } } } diff --git a/jetty-server/src/test/java/org/eclipse/jetty/server/handler/AllowSymLinkAliasCheckerTest.java b/jetty-server/src/test/java/org/eclipse/jetty/server/handler/AllowSymLinkAliasCheckerTest.java index e9fc3ed3a28..65bdd8b3bb6 100644 --- a/jetty-server/src/test/java/org/eclipse/jetty/server/handler/AllowSymLinkAliasCheckerTest.java +++ b/jetty-server/src/test/java/org/eclipse/jetty/server/handler/AllowSymLinkAliasCheckerTest.java @@ -82,7 +82,10 @@ public class AllowSymLinkAliasCheckerTest @After public void teardown() throws Exception { - server.stop(); + if( server != null ) + { + server.stop(); + } } private void setupRoot() throws IOException