Skip to content

Commit

Permalink
Add regression test for scala#12973
Browse files Browse the repository at this point in the history
  • Loading branch information
griggt authored and olsdavis committed Apr 4, 2022
1 parent c9f00c5 commit 100f4c6
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 100f4c6

Please sign in to comment.