Generate expected report check unconditionally

Even if a testcase shouldn't generate any HID reports, we should verify that it
didn't. If it does generate a report when there are none expected, that test
should fail.

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/979/head
Michael Richters 4 years ago
parent 81b8582eda
commit 20a380aa3f
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -221,9 +221,7 @@ sub generate_start_new_test {
cxx("ClearState(); // Clear any state from previous tests"); cxx("ClearState(); // Clear any state from previous tests");
} }
sub generate_end_test { sub generate_end_test {
if ($reports_expected) {
generate_check_expected_reports(); generate_check_expected_reports();
}
outdent(); outdent();
cxx("} // TEST_F"); cxx("} // TEST_F");
cxx(''); cxx('');

Loading…
Cancel
Save