Index: help-message.test =================================================================== --- help-message.test +++ help-message.test @@ -1,8 +1,17 @@ # RUN: llvm-objcopy --help | FileCheck --check-prefix=CHECK-OBJCOPY %s # RUN: not llvm-objcopy 2>&1 | FileCheck --check-prefix=CHECK-OBJCOPY %s +# RUN: not llvm-objcopy -abcabc 2>&1 | FileCheck --check-prefix=CHECK-OBJCOPY-UNKNOWN-ARGUMENT %s +# RUN: not llvm-objcopy -strip-debug 2>&1 | FileCheck %s --check-prefix=CHECK-OBJCOPY-NO-INPUT-FILES # RUN: llvm-strip --help | FileCheck --check-prefix=CHECK-STRIP %s # RUN: not llvm-strip 2>&1 | FileCheck --check-prefix=CHECK-STRIP %s +# RUN: not llvm-strip -abcabc 2>&1 | FileCheck --check-prefix=CHECK-STRIP-UNKNOWN-ARGUMENT %s +# RUN: not llvm-strip -strip-debug 2>&1 | FileCheck %s --check-prefix=CHECK-STRIP-NO-INPUT-FILES # CHECK-OBJCOPY: USAGE: llvm-objcopy +# CHECK-OBJCOPY-UNKNOWN-ARGUMENT: unknown argument '-abcabc' +# CHECK-OBJCOPY-NO-INPUT-FILES: No input file specified + # CHECK-STRIP: USAGE: llvm-strip +# CHECK-STRIP-UNKNOWN-ARGUMENT: unknown argument '-abcabc' +# CHECK-STRIP-NO-INPUT-FILES: No input file specified Index: strip-debug.test =================================================================== --- strip-debug.test +++ strip-debug.test @@ -10,8 +10,6 @@ # RUN: llvm-readobj -file-headers -sections -symbols %t3 | FileCheck %s # RUN: cmp %t2 %t3 -# RUN: not llvm-strip -strip-debug 2>&1 | FileCheck %s --check-prefix=NO-INPUT-FILES - !ELF FileHeader: Class: ELFCLASS64 @@ -62,5 +60,3 @@ # CHECK-NEXT: Section: .text # CHECK-NEXT: } # CHECK-NEXT: ] - -# NO-INPUT-FILES: No input file specified