Skip to content

Commit 039acc1

Browse files
som-snyttadriaanm
authored andcommitted
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.
1 parent 2006c37 commit 039acc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/files/run/json.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* filter: inliner warning(s); re-run with -Yinline-warnings for details
2+
* filter: inliner warning\(s\); re-run with -Yinline-warnings for details
33
*/
44
import scala.util.parsing.json._
55
import scala.collection.immutable.TreeMap

0 commit comments

Comments
 (0)