From 1374a41b0867d911387f47049eaff5057997b453 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 14 Mar 2025 18:57:33 -0400 Subject: [PATCH] Print NOAUTOUPDATE when _not_ autoupdate (#5134) Currently it prints the message for autoupdate tests --- testing/file_test/file_test_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } }