~eda-qa/leaflang/cpp

« back to all changes in this revision

Viewing changes to share/unit_tests/block/error/info_defer_add_layer.lfb

  • Committer: edA-qa mort-ora-y
  • Date: 2017-08-19 06:03:00 UTC
  • mfrom: (100.1.22 misc)
  • Revision ID: eda-qa@disemia.com-20170819060300-209dwd5884343mi0
merging miscelaneous changes, mainly platform improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
                //TODO: return sap(x)   instead of named return
14
14
                q = sap(x)
15
15
        } on fail {
16
 
                trace( current_error_info.tag )
 
16
                trace( current_fail.tag )
17
17
                resume_fail
18
18
        }
19
19
}
20
20
 
21
21
defn pine = (x:integer)-> {
22
22
        defer_fail {
23
 
                current_error_info.add( tag_pine )
 
23
                current_fail.add( tag_pine )
24
24
        }
25
25
        
26
26
        return branch(x)
29
29
trace(pine(2))
30
30
 
31
31
trace(pine(7)) on fail { 
32
 
        trace( current_error_info.contains(tag_sap) )
33
 
        trace( current_error_info.contains(tag_pine) )
 
32
        trace( current_fail.contains(tag_sap) )
 
33
        trace( current_fail.contains(tag_pine) )
34
34
}