[clang-tools-extra] r374749 - Prefer 'env not' over 'not env' in tests.
Nico Weber via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 13 18:41:56 PDT 2019
Author: nico
Date: Sun Oct 13 18:41:56 2019
New Revision: 374749
URL: http://llvm.org/viewvc/llvm-project?rev=374749&view=rev
Log:
Prefer 'env not' over 'not env' in tests.
That way, lit's builtin 'env' command can be used for the 'env' bit.
Also it's clearer that way that the 'not' shouldn't cover 'env'
failures.
Modified:
clang-tools-extra/trunk/clangd/test/log.test
Modified: clang-tools-extra/trunk/clangd/test/log.test
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/test/log.test?rev=374749&r1=374748&r2=374749&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/test/log.test (original)
+++ clang-tools-extra/trunk/clangd/test/log.test Sun Oct 13 18:41:56 2019
@@ -1,4 +1,4 @@
-# RUN: not env CLANGD_FLAGS=-index-file=no-such-index clangd -lit-test </dev/null 2>&1 >/dev/null | FileCheck %s
+# RUN: env CLANGD_FLAGS=-index-file=no-such-index not clangd -lit-test </dev/null 2>&1 >/dev/null | FileCheck %s
CHECK: I[{{.*}}] clangd version {{.*}}
CHECK: Working directory: {{.*}}
CHECK: argv[0]: clangd
More information about the cfe-commits
mailing list