Skip to content

Commit 6558e04

Browse files
authored
[lldb][test] Change unsupported cat -e to cat -v to work with lit internal shell (#104878)
This patch changes the test that uses the `cat -e` option to `cat -v` so that the test can be run using lit's internal shell. For `cat`, the `-v` option prints non-printing characters in ^ and M- notation, while the `-e` option adds `$` to the end of lines in addition to printing non-printing characters in ^ and M- notation. This is an alternative patch to #102061, opting to rewrite the test that uses `cat -e` instead of extending support to the `-e` option. Fixes #102377
1 parent 349d76d commit 6558e04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
UNSUPPORTED: system-windows
22

33
RUN: not %lldb -b -o 'settings set use-color true' -o 'settings show use-color' -o 'bogus' > %t 2>&1
4-
RUN: cat -e %t | FileCheck %s --check-prefix COLOR
4+
RUN: cat -v %t | FileCheck %s --check-prefix COLOR
55
COLOR: use-color (boolean) = true
66
# The [[ confuses FileCheck so regex match it.
77
COLOR: {{.+}}0;1;31merror: {{.+}}0m'bogus' is not a valid command

0 commit comments

Comments
 (0)