Skip to content

Commit

Permalink
Merge pull request #13343 from griggt/fix-12973
Browse files Browse the repository at this point in the history
Fix #12973: Add regression test
  • Loading branch information
anatoliykmetyuk authored Aug 25, 2021
2 parents bc59efb + a06c59a commit 9e06f24
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions project/scripts/bootstrapCmdTests
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,9 @@ grep -qe "Usage: scala <options> <source files>" "$tmp"

./bin/scala -d hello.jar tests/run/hello.scala
ls hello.jar

echo "testing i12973"
clear_out "$OUT"
./bin/scalac -d "$OUT/out.jar" tests/pos/i12973.scala
echo "Bug12973().check" | TERM=dumb ./bin/scala -cp "$OUT/out.jar" > "$tmp" 2>&1
grep -qe "Bug12973 is fixed" "$tmp"
4 changes: 4 additions & 0 deletions tests/pos/i12973.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Compiled and placed on the REPL classpath in the bootstrapCmdTests script
// to test that launching the REPL with `scala -cp <path>` works (issue #12973)
case class Bug12973():
def check = s"$productPrefix is fixed"

0 comments on commit 9e06f24

Please sign in to comment.