[clang] be931f8 - clang/test/CodeCompletion: Simplify/fix some `touch` commands
David Blaikie via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 16 15:18:18 PST 2022
Author: David Blaikie
Date: 2022-12-16T23:18:11Z
New Revision: be931f89451b650e081daf875213c19f658caf25
URL: https://github.com/llvm/llvm-project/commit/be931f89451b650e081daf875213c19f658caf25
DIFF: https://github.com/llvm/llvm-project/commit/be931f89451b650e081daf875213c19f658caf25.diff
LOG: clang/test/CodeCompletion: Simplify/fix some `touch` commands
These were inconsistent (one `touch` line listed all the files in a
single `touch` invocation, but the other listed them as separate
commands with `&&`) and incorrect (one `&&` was missing, causing `touch`
to try to touch a file called `touch` in the cwd, which might not be
accessible/relevant to test execution)
So make them consistent and simpler by using the "list all the files on
a line in a single `touch` invocation" reducing the visual
noise/clutter/etc.
Added:
Modified:
clang/test/CodeCompletion/included-files.cpp
Removed:
################################################################################
diff --git a/clang/test/CodeCompletion/included-files.cpp b/clang/test/CodeCompletion/included-files.cpp
index d8a4c3872a78c..9ad3e28b21231 100644
--- a/clang/test/CodeCompletion/included-files.cpp
+++ b/clang/test/CodeCompletion/included-files.cpp
@@ -1,5 +1,5 @@
// RUN: rm -rf %t && mkdir %t && cp %s %t/main.cc && mkdir %t/a && mkdir %t/QtCore && mkdir %t/Headers %t/Some.framework %t/Some.framework/Headers
-// RUN: touch %t/foo.h && touch %t/foo.hxx touch %t/foo.cc && touch %t/a/foosys %t/a/foosys.h && touch %t/QtCore/foosys %t/QtCore/foo.h
+// RUN: touch %t/foo.h %t/foo.hxx %t/foo.cc %t/a/foosys %t/a/foosys.h %t/QtCore/foosys %t/QtCore/foo.h
// RUN: touch %t/Headers/foosys %t/Headers/foo.h %t/Some.framework/Headers/foosys %t/Some.framework/Headers/foo.h
// Quoted string shows header-ish files from CWD, and all from system.
More information about the cfe-commits
mailing list