diff --git a/testing/bin/ktest-to-cxx b/testing/bin/ktest-to-cxx index f9d76f1e..3b7d6f0e 100644 --- a/testing/bin/ktest-to-cxx +++ b/testing/bin/ktest-to-cxx @@ -375,7 +375,9 @@ sub generate_expect_report { $reports_expected++; if ( $report->{data}->{count} == 0 ) { - cxx_comment( $report->{comment} ); + if ( $report->{comment} ) { + cxx_comment( $report->{comment} ); + } cxx_comment( "We don't expect any report here, and have told the tests to check that" );