From 4cec4143d3f35be3f4379e00cc4fea357ef2a349 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 15 Nov 2016 21:55:56 -0800 Subject: 3675 --- 020run.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '020run.cc') diff --git a/020run.cc b/020run.cc index a6b6e4e0..ed594210 100644 --- a/020run.cc +++ b/020run.cc @@ -177,7 +177,7 @@ if (argc > 1) { transform_all(); //? DUMP(""); //? exit(0); -if (Trace_errors) return 1; +if (trace_contains_errors()) return 1; save_snapshots(); //: Step 3: if we aren't running tests, locate a recipe called 'main' and @@ -374,7 +374,7 @@ void run(const string& form) { vector tmp = load(form); transform_all(); if (tmp.empty()) return; - if (trace_count("error") > 0) return; + if (trace_contains_errors()) return; // if a test defines main, it probably wants to start there regardless of // definition order if (contains_key(Recipe, get(Recipe_ordinal, "main"))) -- cgit 1.4.1-2-gfad0