Reputation: 95
I have a test where I am using a expect @eventA-> eventually @eventB else dut_error
However, my test treats that dut_error as a dut_warning and the test passed. Is there any runtime switch in specman that downgrades all dut_errors to dut_warnings ?
Upvotes: 1
Views: 380
Reputation: 781
For changing the effect of all checks, you cal also issue "set check WARNING"
I recommend that you give names to the checks, among other things - it simplifies controlling their effect.
e.g. -
expect data_flow is @eventA-> eventually @eventB else ...
and then -
set check -name = my_checker.data_flow WARNING;
A nice thing is that if you name the expect, you can override it.
expect data_flow @eventA-> {[3..13]; @eventB} else ...
Upvotes: 3
Reputation: 220
Yes, set_check can change the error level.
extend sys {
setup() is also {
set_check("...", WARNING);
};
};
Upvotes: 1