Prashanth R
Prashanth R

Reputation: 95

how to downgrade dut_error to dut_warning in specman

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

Answers (2)

user3467290
user3467290

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

Kamil.Khoury
Kamil.Khoury

Reputation: 220

Yes, set_check can change the error level.

extend sys {
   setup() is also {
        set_check("...", WARNING);
    };
};

Upvotes: 1

Related Questions