diff --git a/testing/file_test/file_test_base.cpp b/testing/file_test/file_test_base.cpp index 701ce6de99b2..d7cbb0826d0d 100644 --- a/testing/file_test/file_test_base.cpp +++ b/testing/file_test/file_test_base.cpp @@ -256,7 +256,7 @@ auto FileTestCase::TestBody() -> void { llvm::errs() << "\nTo test this file alone, run:\n " << GetBazelCommand(BazelMode::Test, test_info_->test_name) << "\n\n"; - if (test_file.autoupdate_line_number) { + if (!test_file.autoupdate_line_number) { llvm::errs() << "\nThis test is NOAUTOUPDATE.\n\n"; } }