diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-07-17 01:34:39 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-07-17 01:34:39 +0000 |
| commit | 7a7a96e19979a57b1f257d8d8679f0c5ef38bd88 (patch) | |
| tree | 1d47efb464146aca74485ffcf72bed3de417f387 | |
| parent | 58ed0f3a5cf31ce25f0c877b08f672645134093b (diff) | |
| download | bcm5719-llvm-7a7a96e19979a57b1f257d8d8679f0c5ef38bd88.tar.gz bcm5719-llvm-7a7a96e19979a57b1f257d8d8679f0c5ef38bd88.zip | |
Do not invoke FileCheck with `not` command.
We should use CHECK-NOT instead.
llvm-svn: 275700
| -rw-r--r-- | lld/test/ELF/trace-symbols.s | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/lld/test/ELF/trace-symbols.s b/lld/test/ELF/trace-symbols.s index f75fd0539cb..7a2a5d2607e 100644 --- a/lld/test/ELF/trace-symbols.s +++ b/lld/test/ELF/trace-symbols.s @@ -15,14 +15,14 @@ # OBJECTRFOO: trace-symbols.s.tmp: reference to foo # RUN: ld.lld -y foo -trace-symbol=common -trace-symbol=hsymbol \ -# RUN: %t %t1 %t2 -o %t3 2>&1 | not FileCheck -check-prefix=OBJECTDCOMMON %s -# OBJECTDCOMMON: trace-symbols.s.tmp1: definition of common +# RUN: %t %t1 %t2 -o %t3 2>&1 | FileCheck -check-prefix=OBJECTDCOMMON %s +# OBJECTDCOMMON-NOT: trace-symbols.s.tmp1: definition of common +# RUN: ld.lld -y foo -y common %t %t2 %t1 -o %t3 2>&1 | \ +# RUN: FileCheck -check-prefix=OBJECTD1FOO %s # RUN: ld.lld -y foo -trace-symbol=common -trace-symbol=hsymbol \ -# RUN: %t %t1 %t2 -o %t3 2>&1 | not FileCheck -check-prefix=OBJECTD1FOO %s -# RUN: ld.lld -y foo -y common %t %t2 %t1 -o %t3 2>&1 | not FileCheck \ -# RUN: -check-prefix=OBJECTD1FOO %s -# OBJECTD1FOO: trace-symbols.s.tmp1: definition of foo +# RUN: %t %t1 %t2 -o %t3 2>&1 | FileCheck -check-prefix=OBJECTD1FOO %s +# OBJECTD1FOO-NOT: trace-symbols.s.tmp1: definition of foo # RUN: ld.lld -y foo -trace-symbol=common -trace-symbol=hsymbol \ # RUN: %t %t1 %t2 -o %t3 2>&1 | FileCheck -check-prefix=OBJECTD2FOO %s @@ -38,23 +38,25 @@ # RUN: FileCheck -check-prefix=SHLIBDCOMMON %s # SHLIBDCOMMON: trace-symbols.s.tmp1.so: definition of common -# RUN: ld.lld -y foo -y common %t %t1.so %t2 -o %t3 2>&1 | \ -# RUN: not FileCheck -check-prefix=SHLIBD1FOO %s # RUN: ld.lld -y foo -y common %t %t1.so %t2.so -o %t3 2>&1 | \ # RUN: FileCheck -check-prefix=SHLIBD1FOO %s # RUN: ld.lld -y foo %t %t1.so %t2.a -o %t3 | \ # RUN: FileCheck -check-prefix=SHLIBD1FOO %s -# SHLIBD1FOO: trace-symbols.s.tmp1.so: definition of foo +# RUN: ld.lld -y foo -y common %t %t1.so %t2 -o %t3 2>&1 | \ +# RUN: FileCheck -check-prefix=NO-SHLIBD1FOO %s +# SHLIBD1FOO: trace-symbols.s.tmp1.so: definition of foo +# NO-SHLIBD1FOO-NOT: trace-symbols.s.tmp1.so: definition of foo # RUN: ld.lld -y foo -y common %t %t2.so %t1.so -o %t3 2>&1 | \ # RUN: FileCheck -check-prefix=SHLIBD2FOO %s # RUN: ld.lld -y foo %t %t1.a %t2.so -o %t3 | \ -# RUN: not FileCheck -check-prefix=SHLIBD2FOO %s -# SHLIBD2FOO: trace-symbols.s.tmp2.so: definition of foo +# RUN: FileCheck -check-prefix=NO-SHLIBD2FOO %s +# SHLIBD2FOO: trace-symbols.s.tmp2.so: definition of foo +# NO-SHLIBD2FOO-NOT: trace-symbols.s.tmp2.so: definition of foo # RUN: ld.lld -y foo -y common %t %t2 %t1.a -o %t3 2>&1 | \ -# RUN: not FileCheck -check-prefix=ARCHIVEDCOMMON %s -# ARCHIVEDCOMMON: trace-symbols.s.tmp1.a(trace-symbols.s.tmp1): definition of \ +# RUN: FileCheck -check-prefix=ARCHIVEDCOMMON %s +# ARCHIVEDCOMMON-NOT: trace-symbols.s.tmp1.a(trace-symbols.s.tmp1): definition of \ # common # RUN: ld.lld -y foo %t %t1.a %t2.so -o %t3 | \ @@ -70,8 +72,8 @@ # SHLIBDBAR: trace-symbols.s.tmp2.so: definition of bar # RUN: ld.lld -y foo -y bar %t %t1.so %t2.so -o %t3 | \ -# RUN: not FileCheck -check-prefix=SHLIBRBAR %s -# SHLIBRBAR: trace-symbols.s.tmp1.so: reference to bar +# RUN: FileCheck -check-prefix=SHLIBRBAR %s +# SHLIBRBAR-NOT: trace-symbols.s.tmp1.so: reference to bar # RUN: ld.lld -y foo -y bar %t -u bar --start-lib %t1 %t2 --end-lib -o %t3 | \ # RUN: FileCheck -check-prefix=STARTLIB %s |

