aboutsummaryrefslogtreecommitdiff
path: root/compiler/test/debug/test
diff options
context:
space:
mode:
authorliu fengyun <liu@fengy.me>2017-02-06 14:51:24 +0100
committerliu fengyun <liu@fengy.me>2017-02-10 19:26:07 +0100
commit6823e15cf08c68ca67f688159536f7a506d1969e (patch)
treed7eee103b65b74cd37a5e2dd0f652610cfd76776 /compiler/test/debug/test
parentb5a9c8c4d1f832f2cc024f9cfe855d6e57bd35f9 (diff)
downloaddotty-6823e15cf08c68ca67f688159536f7a506d1969e.tar.gz
dotty-6823e15cf08c68ca67f688159536f7a506d1969e.tar.bz2
dotty-6823e15cf08c68ca67f688159536f7a506d1969e.zip
fix #1484: position of while incorrect in debug
Diffstat (limited to 'compiler/test/debug/test')
-rwxr-xr-xcompiler/test/debug/test17
1 files changed, 17 insertions, 0 deletions
diff --git a/compiler/test/debug/test b/compiler/test/debug/test
new file mode 100755
index 000000000..c24801cb1
--- /dev/null
+++ b/compiler/test/debug/test
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+set -x
+
+sbt compile package || exit 1
+
+for file in tests/debug/*.scala; do
+ ./bin/dotc $file || exit 1
+ ./bin/dotr -d Test&
+ ./compiler/test/debug/Gen $file > robot
+ expect robot
+
+ if [[ $? != 0 ]]; then
+ echo "debug test failed for file $file"
+ exit 1
+ fi
+done