Skip to content

Commit 20009db

Browse files
bishaboshaKordyjan
authored andcommitted
fix windows command tests
[Cherry-picked b53d7b2]
1 parent 230a078 commit 20009db

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

project/scripts/winCmdTests

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ PREFIX="dist/target/pack"
55
SOURCE="tests/pos/HelloWorld.scala"
66
$PREFIX/bin/scalac @project/scripts/options "$SOURCE"
77
$PREFIX/bin/scalac -d out "$SOURCE"
8-
$PREFIX/bin/scala -classpath out HelloWorld
9-
$PREFIX/bin/scala -classpath out -J-Xmx512m HelloWorld
8+
$PREFIX/bin/scala --power -classpath out -M HelloWorld --offline '--server=false'
9+
$PREFIX/bin/scala --power -classpath out -J -Xmx512m -M HelloWorld --offline '--server=false'
1010
mkdir -p _site && $PREFIX/bin/scaladoc -d _site -project Hello "$SOURCE"

project/scripts/winCmdTests.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ if not %ERRORLEVEL%==0 endlocal& exit /b 1
1414
call "%_PREFIX%\bin\scalac.bat" -d "%_OUT_DIR%" "%_SOURCE%"
1515
if not %ERRORLEVEL%==0 endlocal& exit /b 1
1616

17-
call "%_PREFIX%\bin\scala.bat" -classpath "%_OUT_DIR%" HelloWorld
17+
call "%_PREFIX%\bin\scala.bat" --power -classpath "%_OUT_DIR%" -M HelloWorld --offline --server=false
1818
if not %ERRORLEVEL%==0 endlocal& exit /b 1
1919

20-
call "%_PREFIX%\bin\scala.bat" -classpath "%_OUT_DIR%" -J-Xmx512m HelloWorld
20+
call "%_PREFIX%\bin\scala.bat" --power -classpath "%_OUT_DIR%" -J -Xmx512m -M HelloWorld --offline --server=false
2121
if not %ERRORLEVEL%==0 endlocal& exit /b 1
2222

2323
if not exist "%_SITE_DIR%" mkdir "%_SITE_DIR%"

0 commit comments

Comments
 (0)