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

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 31 00:10:54 PDT 2023


================
@@ -0,0 +1,4 @@
+## 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
----------------
jh7370 wrote:

Why are you using a wildcard pattern here? It seems sensible to properly check the message generated. This also is only testing part of the message, but there are other parts that are important too.

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


More information about the llvm-commits mailing list