summaryrefslogtreecommitdiff
path: root/test/files/run/t7198.scala
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2013-05-25 15:09:35 -0700
committerSom Snytt <som.snytt@gmail.com>2013-05-25 17:12:58 -0700
commite037c9a3c12e21104a5aaf15d2bf27779cc3fd12 (patch)
tree807be2951a7e49608f09fc3a3e1c98b59d852432 /test/files/run/t7198.scala
parent99b4d95fe6c908ce3170ff4d090420f8e47efa1d (diff)
downloadscala-e037c9a3c12e21104a5aaf15d2bf27779cc3fd12.tar.gz
scala-e037c9a3c12e21104a5aaf15d2bf27779cc3fd12.tar.bz2
scala-e037c9a3c12e21104a5aaf15d2bf27779cc3fd12.zip
SI-7198 Par-Test uses filters files
Partest will also read files/filters and files/kind/filters for filter expressions (one per line, trimmed, leading #comments) which are taken as regexes. A test/files/filters is provided which attempts to quell HotSpot warnings; the test for this commit requires it. The elided lines can be revealed using the lemon juice of verbosity: apm@mara:~/projects/snytt/test$ ./partest --verbose --show-diff files/run/t7198.scala [snip] >>>>> Transcripts from failed tests >>>>> > partest files/run/t7198.scala % scalac t7198.scala [snip] % filtering t7198-run.log --Over the moon --Java HotSpot(TM) 64-Bit Server VM warning: Failed to reserve shared memory (errno = 28). The filtering operation is part of the transcript, which is printed on failure. No attempt is made to be clever about not slurping the filters file a thousand times. Previous literal patterns had to be updated because there's parens in them thar strings. Future feature: pattern aliases, define once globally and invoke in test filters.
Diffstat (limited to 'test/files/run/t7198.scala')
-rw-r--r--test/files/run/t7198.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/t7198.scala b/test/files/run/t7198.scala
new file mode 100644
index 0000000000..26e1d8805a
--- /dev/null
+++ b/test/files/run/t7198.scala
@@ -0,0 +1,9 @@
+/* spew a few lines
+ * filter: Over the moon
+ */
+object Test extends App {
+ Console println "The quick brown fox jumped"
+ Console println "Over the moon"
+ Console println "And ran away with the vixen."
+ Console println "Java HotSpot(TM) 64-Bit Server VM warning: Failed to reserve shared memory (errno = 28)."
+}