Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Commit b8d99ca

Browse files
committed
Merge pull request #22 from lrytz/pragma
Include compiler flags from system property when interpreting pragma
2 parents 3e608c0 + 77910d3 commit b8d99ca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ scalaModuleSettings
44

55
name := "scala-partest"
66

7-
version := "1.0.1-SNAPSHOT"
7+
version := "1.0.2-SNAPSHOT"
88

99
scalaVersion := "2.11.0"
1010

src/main/scala/scala/tools/partest/nest/Runner.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ class Runner(val testFile: File, val suiteRunner: SuiteRunner) {
248248
// use lines in block so labeled? Default to sorry, Charlie.
249249
def retainOn(expr: String) = {
250250
val f = expr.trim
251-
def flagWasSet(f: String) = suiteRunner.scalacExtraArgs contains f
251+
val allArgs = suiteRunner.scalacExtraArgs ++ PartestDefaults.scalacOpts.split(' ')
252+
def flagWasSet(f: String) = allArgs contains f
252253
val (invert, token) =
253254
if (f startsWith "!") (true, f drop 1) else (false, f)
254255
val cond = token.trim match {

0 commit comments

Comments
 (0)