From 805fde84245f36594731b2a4e1c1628a0a92cadf Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 28 Jul 2015 15:22:58 -0700 Subject: 1871 --- 029tools.cc | 3 --- 050scenario.cc | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/029tools.cc b/029tools.cc index 02d1f555..9e25f16f 100644 --- a/029tools.cc +++ b/029tools.cc @@ -187,9 +187,6 @@ case _SYSTEM: { break; } products.resize(1); - // ignore 'system' calls in tests since anything we do with them is by - // definition impossible to test through mu. - if (Current_scenario) break; int status = system(current_instruction().ingredients.at(0).name.c_str()); products.at(0).push_back(status); break; diff --git a/050scenario.cc b/050scenario.cc index e35ab0cb..5a1df05d 100644 --- a/050scenario.cc +++ b/050scenario.cc @@ -552,6 +552,11 @@ recipe main [ ] +warn: unexpected [d] in trace layer a +//: Minor detail: ignore 'system' calls in scenarios, since anything we do +//: with them is by definition impossible to test through mu. +:(after "case _SYSTEM:") + if (Current_scenario) break; + //:: Helpers :(code) -- cgit 1.4.1-2-gfad0