[llvm] [llvm-objcopy] Check for missing argument values (PR #70710)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 00:00:55 PST 2023


================
@@ -1,4 +1,6 @@
 ## An error must be reported if a required argument value is missing.
-# RUN: not llvm-objcopy --only-section 2>&1 | FileCheck --check-prefix=CHECK-NO-VALUE %s
-# RUN: not llvm-objcopy -O 2>&1 | FileCheck --check-prefix=CHECK-NO-VALUE %s
-# CHECK-NO-VALUE: error: argument to '{{.*}}' is missing
+# RUN: not llvm-objcopy --only-section 2>&1 | FileCheck --check-prefix=CHECK-NO-VALUE-ONLY-SECTION %s
+# CHECK-NO-VALUE-ONLY-SECTION: error: argument to '--only-section' is missing
----------------
jh7370 wrote:

You're still not checking the latter part of the message, and in particular the substitution for the argument count.

https://github.com/llvm/llvm-project/pull/70710


More information about the llvm-commits mailing list