From dd1a28887dc5951473339606d6edd9cf3bde30c5 Mon Sep 17 00:00:00 2001 From: Philipp Haller Date: Fri, 29 Feb 2008 19:04:46 +0000 Subject: Modified scalatest and .res files so that parte... Modified scalatest and .res files so that partest can simulate it --- test/files/res/bug597.checkout | 4 ++++ test/files/res/bug597.res | 4 ++-- test/files/res/bug687.check | 2 +- test/files/res/bug687.checkerr | 6 ++++++ test/files/res/bug687.checkout | 5 +++++ test/files/res/bug687.res | 6 +++--- test/files/res/bug722.checkout | 4 ++++ test/files/res/bug722.res | 4 ++-- test/files/res/bug735.checkout | 4 ++++ test/files/res/bug735.res | 4 ++-- test/files/res/bug743.checkout | 4 ++++ test/files/res/bug743.res | 4 ++-- test/files/res/bug785.checkout | 4 ++++ test/files/res/bug785.res | 4 ++-- test/files/res/bug831.checkout | 4 ++++ test/files/res/bug831.res | 4 ++-- test/scalatest | 3 ++- 17 files changed, 53 insertions(+), 17 deletions(-) create mode 100644 test/files/res/bug597.checkout create mode 100644 test/files/res/bug687.checkerr create mode 100644 test/files/res/bug687.checkout create mode 100644 test/files/res/bug722.checkout create mode 100644 test/files/res/bug735.checkout create mode 100644 test/files/res/bug743.checkout create mode 100644 test/files/res/bug785.checkout create mode 100644 test/files/res/bug831.checkout diff --git a/test/files/res/bug597.checkout b/test/files/res/bug597.checkout new file mode 100644 index 0000000000..ed46e87f5d --- /dev/null +++ b/test/files/res/bug597.checkout @@ -0,0 +1,4 @@ + +nsc> +nsc> +nsc> \ No newline at end of file diff --git a/test/files/res/bug597.res b/test/files/res/bug597.res index 0db355cd0f..1314e7b40b 100644 --- a/test/files/res/bug597.res +++ b/test/files/res/bug597.res @@ -1,2 +1,2 @@ -bug597/Test.scala -bug597/Main.scala +files/res/bug597/Test.scala +files/res/bug597/Main.scala diff --git a/test/files/res/bug687.check b/test/files/res/bug687.check index 92e5e4e75d..8d3d3178cd 100644 --- a/test/files/res/bug687.check +++ b/test/files/res/bug687.check @@ -1,6 +1,6 @@ nsc> -nsc> bug687/QueryB.scala:3: error: name clash between defined and inherited member: +nsc> files/res/bug687/QueryB.scala:3: error: name clash between defined and inherited member: method equals:(java.lang.Object)Boolean and method equals:(Any)Boolean in class Any have same type after erasure: (java.lang.Object)Boolean diff --git a/test/files/res/bug687.checkerr b/test/files/res/bug687.checkerr new file mode 100644 index 0000000000..2afdf6343b --- /dev/null +++ b/test/files/res/bug687.checkerr @@ -0,0 +1,6 @@ +bug687/QueryB.scala:3: error: name clash between defined and inherited member: +method equals:(java.lang.Object)Boolean and +method equals:(Any)Boolean in class Any +have same type after erasure: (java.lang.Object)Boolean + override def equals(o : Object) = false; + ^ diff --git a/test/files/res/bug687.checkout b/test/files/res/bug687.checkout new file mode 100644 index 0000000000..7a9fa3e7f1 --- /dev/null +++ b/test/files/res/bug687.checkout @@ -0,0 +1,5 @@ + +nsc> +nsc> +nsc> +nsc> \ No newline at end of file diff --git a/test/files/res/bug687.res b/test/files/res/bug687.res index ba8ba76995..4421977bdc 100644 --- a/test/files/res/bug687.res +++ b/test/files/res/bug687.res @@ -1,3 +1,3 @@ -bug687/QueryA.scala -bug687/QueryB.scala -bug687/QueryA.scala +files/res/bug687/QueryA.scala +files/res/bug687/QueryB.scala +files/res/bug687/QueryA.scala diff --git a/test/files/res/bug722.checkout b/test/files/res/bug722.checkout new file mode 100644 index 0000000000..ed46e87f5d --- /dev/null +++ b/test/files/res/bug722.checkout @@ -0,0 +1,4 @@ + +nsc> +nsc> +nsc> \ No newline at end of file diff --git a/test/files/res/bug722.res b/test/files/res/bug722.res index dbc785c171..bc72066285 100644 --- a/test/files/res/bug722.res +++ b/test/files/res/bug722.res @@ -1,2 +1,2 @@ -bug722/Parser.scala bug722/IfElse.scala -bug722/Parser.scala bug722/IfElse.scala +files/res/bug722/Parser.scala files/res/bug722/IfElse.scala +files/res/bug722/Parser.scala files/res/bug722/IfElse.scala diff --git a/test/files/res/bug735.checkout b/test/files/res/bug735.checkout new file mode 100644 index 0000000000..ed46e87f5d --- /dev/null +++ b/test/files/res/bug735.checkout @@ -0,0 +1,4 @@ + +nsc> +nsc> +nsc> \ No newline at end of file diff --git a/test/files/res/bug735.res b/test/files/res/bug735.res index d477e6fd47..fa544ad080 100644 --- a/test/files/res/bug735.res +++ b/test/files/res/bug735.res @@ -1,2 +1,2 @@ -bug735/ScalaTyper.scala -bug735/ScalaTyper.scala +files/res/bug735/ScalaTyper.scala +files/res/bug735/ScalaTyper.scala diff --git a/test/files/res/bug743.checkout b/test/files/res/bug743.checkout new file mode 100644 index 0000000000..ed46e87f5d --- /dev/null +++ b/test/files/res/bug743.checkout @@ -0,0 +1,4 @@ + +nsc> +nsc> +nsc> \ No newline at end of file diff --git a/test/files/res/bug743.res b/test/files/res/bug743.res index f1dd2462e4..c8312a69bd 100644 --- a/test/files/res/bug743.res +++ b/test/files/res/bug743.res @@ -1,2 +1,2 @@ -bug743/ParserXXX.scala -bug743/BracesXXX.scala +files/res/bug743/ParserXXX.scala +files/res/bug743/BracesXXX.scala diff --git a/test/files/res/bug785.checkout b/test/files/res/bug785.checkout new file mode 100644 index 0000000000..ed46e87f5d --- /dev/null +++ b/test/files/res/bug785.checkout @@ -0,0 +1,4 @@ + +nsc> +nsc> +nsc> \ No newline at end of file diff --git a/test/files/res/bug785.res b/test/files/res/bug785.res index 7e5da1c453..6abf7ed236 100644 --- a/test/files/res/bug785.res +++ b/test/files/res/bug785.res @@ -1,2 +1,2 @@ -bug785/ScalaTrees.scala -bug785/ScalaTrees.scala +files/res/bug785/ScalaTrees.scala +files/res/bug785/ScalaTrees.scala diff --git a/test/files/res/bug831.checkout b/test/files/res/bug831.checkout new file mode 100644 index 0000000000..ed46e87f5d --- /dev/null +++ b/test/files/res/bug831.checkout @@ -0,0 +1,4 @@ + +nsc> +nsc> +nsc> \ No newline at end of file diff --git a/test/files/res/bug831.res b/test/files/res/bug831.res index 0cc6c398ab..807455d7da 100644 --- a/test/files/res/bug831.res +++ b/test/files/res/bug831.res @@ -1,2 +1,2 @@ -bug831/NewScalaTestXXX.scala -bug831/NewScalaTestXXX.scala +files/res/bug831/NewScalaTestXXX.scala +files/res/bug831/NewScalaTestXXX.scala diff --git a/test/scalatest b/test/scalatest index f8f4ed7639..2d95aa4df6 100755 --- a/test/scalatest +++ b/test/scalatest @@ -248,7 +248,8 @@ test_run_neg() { test_run_res() { rm -rf "$dstbase".obj && mkdir -p "$dstbase".obj && - (cd "$srcdir" && cat "$testname".res | $SCALAC -d "$os_dstbase".obj -Xresident -sourcepath . "$@"; ); + #(cd "$srcdir" && cat "$testname".res | $SCALAC -d "$os_dstbase".obj -Xresident -sourcepath . "$@"; ); + (cat "$srcdir/$testname".res | $SCALAC -d "$os_dstbase".obj -Xresident -sourcepath "$srcdir" "$@"; ); rm -rf "$dstbase".obj; } -- cgit v1.2.3