diff options
| author | Boyang Han | 2021-07-07 23:25:06 +0800 |
|---|---|---|
| committer | GitHub | 2021-07-07 15:25:06 +0000 |
| commit | 61b51e29bd6e119a6bad815c17ab11211e50635a (patch) | |
| tree | 2907bfbb44beecd32770b803085813d33382f5c8 /src | |
| parent | 2bc35e683a0852515630c69bc3b737450d33e448 (diff) | |
Replace hard coded line separators with system specific ones (#2281)
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/scala/firrtl/backends/experimental/smt/end2end/EndToEndSMTSpec.scala | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/test/scala/firrtl/backends/experimental/smt/end2end/EndToEndSMTSpec.scala b/src/test/scala/firrtl/backends/experimental/smt/end2end/EndToEndSMTSpec.scala index cbd4256d..5a697980 100644 --- a/src/test/scala/firrtl/backends/experimental/smt/end2end/EndToEndSMTSpec.scala +++ b/src/test/scala/firrtl/backends/experimental/smt/end2end/EndToEndSMTSpec.scala @@ -13,6 +13,7 @@ import org.scalatest.matchers.must.Matchers import os._ import scala.sys.process._ +import scala.util.Properties class EndToEndSMTSpec extends EndToEndSMTBaseSpec with LazyLogging { "we" should "check if Z3 is available" taggedAs (RequiresZ3) in { @@ -186,8 +187,11 @@ private object Z3ModelChecker extends LazyLogging { private def executeStep(path: Path): Boolean = { val (out, ret) = executeCmd(path.toString) assert(ret == 0, s"expected success (0), not $ret: `$out`\nz3 ${path.toString}") - assert(out == "sat\n" || out == "unsat\n", s"Unexpected output: $out") - out == "unsat\n" + assert( + out == "sat" + Properties.lineSeparator || out == "unsat" + Properties.lineSeparator, + s"Unexpected output: $out" + ) + out == "unsat" + Properties.lineSeparator } private def executeCmd(cmd: String): (String, Int) = { |
