[clang-tools-extra] cb9be3f - [clangd] Remove the hanging lit exit-signal.test.

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 4 03:35:28 PST 2019


Author: Haojian Wu
Date: 2019-12-04T12:35:16+01:00
New Revision: cb9be3fa551ba1974c1a38a3f12da4e399adb85c

URL: https://github.com/llvm/llvm-project/commit/cb9be3fa551ba1974c1a38a3f12da4e399adb85c
DIFF: https://github.com/llvm/llvm-project/commit/cb9be3fa551ba1974c1a38a3f12da4e399adb85c.diff

LOG: [clangd] Remove the hanging lit exit-signal.test.

The test was introduced in
https://github.com/llvm/llvm-project/commit/19ac0eaf07e60173baa7ee77fa11568c30b87455.

The test keeps hanging after running "check-clangd", remove it now
and will add it back later after investigations.

Added: 
    

Modified: 
    

Removed: 
    clang-tools-extra/clangd/test/exit-signal.test


################################################################################
diff  --git a/clang-tools-extra/clangd/test/exit-signal.test b/clang-tools-extra/clangd/test/exit-signal.test
deleted file mode 100644
index 15029b0e5cc5..000000000000
--- a/clang-tools-extra/clangd/test/exit-signal.test
+++ /dev/null
@@ -1,32 +0,0 @@
-# This is a fiddly signal test, we need POSIX and a real shell.
-UNSUPPORTED: win32
-REQUIRES: shell
-
-# Our goal is:
-#  1) spawn clangd
-#  2) wait for it to start up (install signal handlers)
-#  3) send SIGTERM
-#  4) wait for clangd to shut down (nonzero exit for a signal)
-#  4) verify the shutdown was clean
-
-RUN: rm -f %t.err
-     # To keep clangd running, we need to hold its input stream open.
-     # We redirect its input to a subshell that waits for it to start up.
-RUN: not clangd 2> %t.err < <( \
-       # Loop waiting for clangd to start up, so signal handlers are installed.
-       # Reading the PID line ensures this, and lets us send a signal.
-RUN:   while true; do \
-         # Relevant log line is I[timestamp] PID: <NNN>
-RUN:     CLANGD_PID=$(grep -a -m 1 "PID:" %t.err | cut -d' ' -f 3); \
-RUN:     [ ! -z "$CLANGD_PID" ] && break; \
-RUN:   done; \
-RUN:   kill $CLANGD_PID; \
-       # Now wait for clangd to stop reading (before closing its input!)
-RUN:   while not grep "LSP finished" %t.err; do :; done; \
-RUN: )
-
-# Check that clangd caught the signal and shut down cleanly.
-RUN: FileCheck %s < %t.err
-CHECK: Transport error: Got signal
-CHECK: LSP finished
-


        


More information about the cfe-commits mailing list