Skip to content

Commit 9e06f24

Browse files
Merge pull request #13343 from griggt/fix-12973
Fix #12973: Add regression test
2 parents bc59efb + a06c59a commit 9e06f24

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

project/scripts/bootstrapCmdTests

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,9 @@ grep -qe "Usage: scala <options> <source files>" "$tmp"
7777

7878
./bin/scala -d hello.jar tests/run/hello.scala
7979
ls hello.jar
80+
81+
echo "testing i12973"
82+
clear_out "$OUT"
83+
./bin/scalac -d "$OUT/out.jar" tests/pos/i12973.scala
84+
echo "Bug12973().check" | TERM=dumb ./bin/scala -cp "$OUT/out.jar" > "$tmp" 2>&1
85+
grep -qe "Bug12973 is fixed" "$tmp"

tests/pos/i12973.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Compiled and placed on the REPL classpath in the bootstrapCmdTests script
2+
// to test that launching the REPL with `scala -cp <path>` works (issue #12973)
3+
case class Bug12973():
4+
def check = s"$productPrefix is fixed"

0 commit comments

Comments
 (0)