[PATCH] D120455: [CommandLine] Remove `may only occur zero or one times!` error

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 24 00:47:41 PST 2022


jhenderson accepted this revision.
jhenderson added a comment.
This revision is now accepted and ready to land.

I can't say I really care about the existing behaviour, so LGTM, but I'd like to give others a chance to look at it.



================
Comment at: llvm/test/tools/llvm-libtool-darwin/deterministic-library.test:27
 ## D Flag specified more than once:
-# RUN: not llvm-libtool-darwin -static -o %t.lib %t-input1.o -D -D 2>&1 | \
-# RUN:   FileCheck %s --check-prefix=CHECK-ERROR-D
-
-# CHECK-ERROR-D: for the -D option: may only occur zero or one times!
+# RUN: llvm-libtool-darwin -static -o %t.lib %t-input1.o -D -D 2>&1 |& count 0
+# RUN: env TZ=GMT llvm-ar tv %t.lib | FileCheck %s --check-prefix=CHECK-DETERMINISTIC
----------------
Why `|&`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120455/new/

https://reviews.llvm.org/D120455



More information about the llvm-commits mailing list