[lld] r265316 - Fix -disable-verify test.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 4 10:42:02 PDT 2016
Author: ruiu
Date: Mon Apr 4 12:42:01 2016
New Revision: 265316
URL: http://llvm.org/viewvc/llvm-project?rev=265316&view=rev
Log:
Fix -disable-verify test.
This test didn't actually test the functionality. The new test
verifies that "-verify" is passed if and only if -disable-verify
is not given.
Modified:
lld/trunk/test/ELF/lto/verify-invalid.ll
Modified: lld/trunk/test/ELF/lto/verify-invalid.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/verify-invalid.ll?rev=265316&r1=265315&r2=265316&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/verify-invalid.ll (original)
+++ lld/trunk/test/ELF/lto/verify-invalid.ll Mon Apr 4 12:42:01 2016
@@ -1,7 +1,9 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: not ld.lld -m elf_x86_64 %t.o -o %t2 -mllvm -disable-verify \
-; RUN: -debug-pass=Arguments 2>&1 | FileCheck %s
+; RUN: ld.lld -m elf_x86_64 %t.o -o %t2 -mllvm -debug-pass=Arguments \
+; RUN: 2>&1 | FileCheck -check-prefix=DEFAULT %s
+; RUN: ld.lld -m elf_x86_64 %t.o -o %t2 -mllvm -debug-pass=Arguments \
+; RUN: -disable-verify 2>&1 | FileCheck -check-prefix=DISABLE %s
target triple = "x86_64-unknown-linux-gnu"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
@@ -11,4 +13,5 @@ define void @_start() {
}
; -disable-verify should disable the verification of bitcode.
-; CHECK-NOT: Pass Arguments: {{.*}} -verify {{.*}} -verify
+; DEFAULT: Pass Arguments: {{.*}} -verify {{.*}} -verify
+; DISABLE-NOT: Pass Arguments: {{.*}} -verify {{.*}} -verify
More information about the llvm-commits
mailing list