Missing call to uvm_report_cb::add() in uvm_report_mock?

55 views
Skip to first unread message

Srinivasan Venkataramanan

unread,
Jul 25, 2016, 4:29:51 AM7/25/16
to SVUnit User Group
Hello,
  Playing with SVUnit & UVM Mock feature - I see the version I have (Fairly recent one) does not have callback registration to catch "expected" errors and hence am getting test failures (unexpected). I added the below line with a comment and it seems to work.

Is this known? Or is there something I'm missing.

Thanks
Srini

class uvm_report_mock;
  static svunit_uvm_report_mock_expected_actual_container reports = new();

  static function void setup();
    // CVC Srini added
    uvm_report_cb::add(null, reports);
    reports.delete();
  endfunction

Srinivasan Venkataramanan

unread,
Jul 25, 2016, 1:17:07 PM7/25/16
to SVUnit User Group
Thanks to Neil's quick reply on twitter, found it inside *.gold file - need to run with +define+RUN_SVUNIT_WITH_UVM_REPORT_MOCK - not obvious, but works
Reply all
Reply to author
Forward
0 new messages