Skip to content

Fix #12973: Add regression test #13343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄