From 20a380aa3fe29b1d72b6e54dbaf2bfaf93aec9e6 Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Mon, 16 Nov 2020 09:31:32 -0600 Subject: [PATCH] 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 --- testing/bin/ktest-to-cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/testing/bin/ktest-to-cxx b/testing/bin/ktest-to-cxx index 16623a39..68853570 100644 --- a/testing/bin/ktest-to-cxx +++ b/testing/bin/ktest-to-cxx @@ -221,9 +221,7 @@ sub generate_start_new_test { cxx("ClearState(); // Clear any state from previous tests"); } sub generate_end_test { - if ($reports_expected) { - generate_check_expected_reports(); - } + generate_check_expected_reports(); outdent(); cxx("} // TEST_F"); cxx('');