From beea7ce25cfe42c363259705a6b5741ad47484ab Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 22 Oct 2016 04:04:46 -0700 Subject: 3543 --- html/072scheduler.cc.html | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'html/072scheduler.cc.html') diff --git a/html/072scheduler.cc.html b/html/072scheduler.cc.html index 720b8473..3eac3e1b 100644 --- a/html/072scheduler.cc.html +++ b/html/072scheduler.cc.html @@ -23,7 +23,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color .Special { color: #c00000; } .traceContains { color: #008000; } .Normal { color: #eeeeee; background-color: #080808; padding-bottom: 1px; } -.Identifier { color: #fcb165; } +.Identifier { color: #ecf32c; } --> @@ -316,6 +316,23 @@ increment_any_refcounts(ingredientreturn false; } +// ensure this works with indirect calls using 'call' as well +:(scenario start_running_immediately_updates_refcounts_of_ingredients_of_indirect_calls) +% Scheduling_interval = 1; +def main [ + local-scope + n:&:num <- new number:type + *n <- copy 34 + call f1, n + 1:num/raw <- copy *n +] +def f1 n:&:num [ + local-scope + load-ingredients +] +# check that n wasn't reclaimed when f1 returned ++mem: storing 34 in location 1 + :(scenario next_ingredient_never_leaks_refcounts) def create-space n:&:num -> default-space:space [ default-space <- new location:type, 2 @@ -565,15 +582,11 @@ DISCONTINUED, } :(before "End Test Teardown") -if (Passed && any_routines_with_error()) { - Passed = false; +if (Passed && any_routines_with_error()) raise << "some routines died with errors\n" << end(); -} :(before "End Mu Test Teardown") -if (Passed && any_routines_with_error()) { - Passed = false; +if (Passed && any_routines_with_error()) raise << Current_scenario->name << ": some routines died with errors\n" << end(); -} :(code) bool any_routines_with_error() { -- cgit 1.4.1-2-gfad0