Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[lldb server] Tidy up LLDB server return codes and associated…
… tests" This reverts commit e387c8c. The TestErrorMessages.test is failing on the Linux bots.
- Loading branch information
Showing
4 changed files
with
27 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,14 @@ | ||
RUN: not %lldb-server gdbserver --fd 2>&1 | FileCheck --check-prefixes=FD1,GDB_REMOTE_ALL %s | ||
RUN: %lldb-server gdbserver --fd 2>&1 | FileCheck --check-prefixes=FD1,ALL %s | ||
FD1: error: --fd: missing argument | ||
|
||
RUN: not %lldb-server gdbserver --fd three 2>&1 | FileCheck --check-prefixes=FD2,GDB_REMOTE_ALL %s | ||
RUN: %lldb-server gdbserver --fd three 2>&1 | FileCheck --check-prefixes=FD2,ALL %s | ||
FD2: error: invalid '--fd' argument | ||
|
||
RUN: not %lldb-server gdbserver --bogus 2>&1 | FileCheck --check-prefixes=BOGUS,GDB_REMOTE_ALL %s | ||
RUN: %lldb-server gdbserver --bogus 2>&1 | FileCheck --check-prefixes=BOGUS,ALL %s | ||
BOGUS: error: unknown argument '--bogus' | ||
|
||
RUN: not %lldb-server gdbserver 2>&1 | FileCheck --check-prefixes=CONN,GDB_REMOTE_ALL %s | ||
RUN: %lldb-server gdbserver 2>&1 | FileCheck --check-prefixes=CONN,ALL %s | ||
CONN: error: no connection arguments | ||
|
||
RUN: %lldb-server platform 2>&1 | FileCheck --check-prefixes=LLDB_PLATFORM_ALL %s | ||
|
||
RUN: %lldb-server platform --fd 2>&1 | FileCheck --check-prefixes=FD3,LLDB_PLATFORM_ALL %s | ||
FD3: lldb-server: unrecognized option `--fd' | ||
|
||
RUN: not %lldb-server platform --min-gdbserver-port 42 --max-gdbserver-port 43 2>&1 | FileCheck --check-prefixes=PORT1,LLDB_PLATFORM_ALL %s | ||
PORT1: error: port number 42 is not in the valid user port range of 1024 - 49152 | ||
|
||
RUN: %lldb-server version 2>&1 | FileCheck --check-prefixes=VERSION %s | ||
VERSION: lldb version | ||
|
||
GDB_REMOTE_ALL: Use '{{.*}} g[dbserver] --help' for a complete list of options. | ||
LLDB_PLATFORM_ALL: lldb-server platform [--log-file log-file-name] [--log-channels log-channel-list] [--port-file port-file-path] --server --listen port | ||
ALL: Use '{{.*}} g[dbserver] --help' for a complete list of options. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Windows does not build lldb-server. | ||
# UNSUPPORTED: system-windows | ||
# RUN: not %platformserver --server --listen :1234 --min-gdbserver-port 1234 --max-gdbserver-port 1234 2>&1 | FileCheck %s | ||
# RUN: %platformserver --server --listen :1234 --min-gdbserver-port 1234 --max-gdbserver-port 1234 2>&1 | FileCheck %s | ||
# CHECK: error: --min-gdbserver-port (1234) is not lower than --max-gdbserver-port (1234) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters