aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2017-03-29 17:14:40 +0200
committerFelix Mulder <felix.mulder@gmail.com>2017-03-29 18:06:13 +0200
commit6d852e1f30ef9e704dbd88aefae60ad632ad3541 (patch)
treea799ef7e00f1d4bc8eb9d22f2af11fec0f72ff1e /tests
parentf49c10d1667de897b2073d9b15c7c6cb8cc52482 (diff)
downloaddotty-6d852e1f30ef9e704dbd88aefae60ad632ad3541.tar.gz
dotty-6d852e1f30ef9e704dbd88aefae60ad632ad3541.tar.bz2
dotty-6d852e1f30ef9e704dbd88aefae60ad632ad3541.zip
Fix #2147: redirect both java and scala std out/err
Diffstat (limited to 'tests')
-rw-r--r--tests/partest-test/i2147.check3
-rw-r--r--tests/partest-test/i2147.scala7
-rw-r--r--tests/run/i2147.check3
-rw-r--r--tests/run/i2147.scala7
4 files changed, 20 insertions, 0 deletions
diff --git a/tests/partest-test/i2147.check b/tests/partest-test/i2147.check
new file mode 100644
index 000000000..64a4b735b
--- /dev/null
+++ b/tests/partest-test/i2147.check
@@ -0,0 +1,3 @@
+Felix is number 1
+ducksarethebest.org
+foolsRus.org
diff --git a/tests/partest-test/i2147.scala b/tests/partest-test/i2147.scala
new file mode 100644
index 000000000..dd9839838
--- /dev/null
+++ b/tests/partest-test/i2147.scala
@@ -0,0 +1,7 @@
+object Test {
+ def main(args: Array[String]): Unit = {
+ println("Guillaume is number 1")
+ System.out.println("ducksarethebest.com")
+ System.err.println("foolsRus.com")
+ }
+}
diff --git a/tests/run/i2147.check b/tests/run/i2147.check
new file mode 100644
index 000000000..f704ab00e
--- /dev/null
+++ b/tests/run/i2147.check
@@ -0,0 +1,3 @@
+before
+42
+lol
diff --git a/tests/run/i2147.scala b/tests/run/i2147.scala
new file mode 100644
index 000000000..f8e9f2181
--- /dev/null
+++ b/tests/run/i2147.scala
@@ -0,0 +1,7 @@
+object Test {
+ def main(args: Array[String]): Unit = {
+ println("before")
+ System.out.println("42")
+ println("lol")
+ }
+}