From 0d6164b201f7255a4ffd42f35d0dc1aebd9dc7b5 Mon Sep 17 00:00:00 2001 From: Hamza Remmal Date: Sun, 2 Mar 2025 22:03:34 +0100 Subject: [PATCH] fix: do not run repl test on windows --- compiler/test/dotty/tools/scripting/BashExitCodeTests.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/test/dotty/tools/scripting/BashExitCodeTests.scala b/compiler/test/dotty/tools/scripting/BashExitCodeTests.scala index b4244c5e5cff..778dd1ea18da 100644 --- a/compiler/test/dotty/tools/scripting/BashExitCodeTests.scala +++ b/compiler/test/dotty/tools/scripting/BashExitCodeTests.scala @@ -73,7 +73,10 @@ class BashExitCodeTests: @Test def xPluginList = scala("-Xplugin-list")(0) @Test def vPhases = scala("-Vphases")(0) - @Test def replEval = repl("--repl-quit-after-init", "--repl-init-script", "\'println(\"Hello from init script!\"); val i = 2 * 2\'")(0) + @Test def replEval = + // Do not run this test on Windows since it is wrongly escaped (#22689) + assumeFalse(System.getProperty("os.name").startsWith("Windows")); + repl("--repl-quit-after-init", "--repl-init-script", "\'println(\"Hello from init script!\"); val i = 2 * 2\'")(0) /** A utility for running two commands in a row, like you do in bash. */ extension (inline u1: Unit) inline def & (inline u2: Unit): Unit = { u1; u2 }