about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-06-27 17:53:18 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-06-27 17:53:18 -0700
commit5877ef32469e488e5634fd2374b2ae9638d36642 (patch)
tree5e492b0a05112faca71bfab9edd6229cf59797f1
parentaf34d26686c30e9c61c910b683cc9803f2a138c9 (diff)
downloadmu-5877ef32469e488e5634fd2374b2ae9638d36642.tar.gz
1668 - there's a bug in CHECK_TRACE_DOESNT_CONTAIN
For starters start making the test fail when building until layer 41.
-rw-r--r--030container.cc1
-rw-r--r--041name.cc3
-rw-r--r--050scenario.cc4
3 files changed, 7 insertions, 1 deletions
diff --git a/030container.cc b/030container.cc
index 551a76a4..6ee9fcd7 100644
--- a/030container.cc
+++ b/030container.cc
@@ -308,6 +308,7 @@ container bar [
   x:number
 ]
 -warn: unknown type: bar
+$warn: 0
 
 :(after "int main")
   Transform.push_back(check_invalid_types);
diff --git a/041name.cc b/041name.cc
index f87b1868..1aa46592 100644
--- a/041name.cc
+++ b/041name.cc
@@ -180,6 +180,7 @@ recipe main [
   x:number <- copy 1:number/raw
 ]
 -warn: mixing variable names and numeric addresses in main
+$warn: 0
 
 :(scenario convert_names_does_not_warn_when_mixing_names_and_literals)
 % Hide_warnings = true;
@@ -187,6 +188,7 @@ recipe main [
   x:number <- copy 1:literal
 ]
 -warn: mixing variable names and numeric addresses in main
+$warn: 0
 
 :(scenario convert_names_does_not_warn_when_mixing_special_names_and_numeric_locations)
 % Hide_warnings = true;
@@ -194,6 +196,7 @@ recipe main [
   screen:number <- copy 1:number
 ]
 -warn: mixing variable names and numeric addresses in main
+$warn: 0
 
 :(scenario convert_names_warns_on_reusing_name_with_different_type)
 % Hide_warnings = true;
diff --git a/050scenario.cc b/050scenario.cc
index 49f875f4..6ced90df 100644
--- a/050scenario.cc
+++ b/050scenario.cc
@@ -132,7 +132,7 @@ const scenario* Current_scenario = NULL;
 void run_mu_scenario(const scenario& s) {
   Current_scenario = &s;
   bool not_already_inside_test = !Trace_stream;
-//?   cerr << s.name << '\n'; //? 4
+//?   cerr << s.name << '\n'; //? 5
   if (not_already_inside_test) {
     Trace_file = s.name;
     Trace_stream = new trace_stream;
@@ -450,6 +450,7 @@ recipe main [
   ]
 ]
 -warn: missing [b] in trace layer a
+$warn: 0
 
 //: 'trace-should-not-contain' is like the '-' lines in our scenarios so far
 //: Each trace line is separately checked for absense. Order is *not*
@@ -502,6 +503,7 @@ recipe main [
   ]
 ]
 -warn: unexpected [b] in trace layer a
+$warn: 0
 
 :(scenario trace_negative_check_warns_on_any_unexpected_line)
 % Hide_warnings = true;