equal
deleted
inserted
replaced
12 err_lines: List[String] = Nil, |
12 err_lines: List[String] = Nil, |
13 timeout: Option[Time] = None) |
13 timeout: Option[Time] = None) |
14 { |
14 { |
15 def out: String = cat_lines(out_lines) |
15 def out: String = cat_lines(out_lines) |
16 def err: String = cat_lines(err_lines) |
16 def err: String = cat_lines(err_lines) |
|
17 def error(s: String): Process_Result = copy(err_lines = err_lines ::: List(s)) |
17 |
18 |
18 def error(s: String, err_rc: Int = 0): Process_Result = |
19 def set_timeout(t: Time): Process_Result = copy(rc = 1, timeout = Some(t)) |
19 copy(err_lines = err_lines ::: List(s), rc = rc max err_rc) |
|
20 |
|
21 def set_timeout(t: Time): Process_Result = copy(timeout = Some(t)) |
|
22 |
20 |
23 def ok: Boolean = rc == 0 |
21 def ok: Boolean = rc == 0 |
24 def interrupted: Boolean = rc == Exn.Interrupt.return_code |
22 def interrupted: Boolean = rc == Exn.Interrupt.return_code |
25 |
23 |
26 def check: Process_Result = |
24 def check: Process_Result = |