summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/tests/Inputs/shtest-shell
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/lit/tests/Inputs/shtest-shell')
-rw-r--r--llvm/utils/lit/tests/Inputs/shtest-shell/diff-encodings.txt9
-rw-r--r--llvm/utils/lit/tests/Inputs/shtest-shell/diff-in.binbin0 -> 26 bytes
-rw-r--r--llvm/utils/lit/tests/Inputs/shtest-shell/diff-in.utf16bin0 -> 24 bytes
-rw-r--r--llvm/utils/lit/tests/Inputs/shtest-shell/diff-in.utf83
4 files changed, 12 insertions, 0 deletions
diff --git a/llvm/utils/lit/tests/Inputs/shtest-shell/diff-encodings.txt b/llvm/utils/lit/tests/Inputs/shtest-shell/diff-encodings.txt
new file mode 100644
index 00000000000..d8b9718a099
--- /dev/null
+++ b/llvm/utils/lit/tests/Inputs/shtest-shell/diff-encodings.txt
@@ -0,0 +1,9 @@
+# Check that diff falls back to binary mode if it cannot decode a file.
+
+# RUN: diff -u diff-in.bin diff-in.bin
+# RUN: diff -u diff-in.utf16 diff-in.bin && false || true
+# RUN: diff -u diff-in.utf8 diff-in.bin && false || true
+# RUN: diff -u diff-in.bin diff-in.utf8 && false || true
+
+# Fail so lit will print output.
+# RUN: false
diff --git a/llvm/utils/lit/tests/Inputs/shtest-shell/diff-in.bin b/llvm/utils/lit/tests/Inputs/shtest-shell/diff-in.bin
new file mode 100644
index 00000000000..06b800b707c
--- /dev/null
+++ b/llvm/utils/lit/tests/Inputs/shtest-shell/diff-in.bin
Binary files differ
diff --git a/llvm/utils/lit/tests/Inputs/shtest-shell/diff-in.utf16 b/llvm/utils/lit/tests/Inputs/shtest-shell/diff-in.utf16
new file mode 100644
index 00000000000..d7d9feefa7d
--- /dev/null
+++ b/llvm/utils/lit/tests/Inputs/shtest-shell/diff-in.utf16
Binary files differ
diff --git a/llvm/utils/lit/tests/Inputs/shtest-shell/diff-in.utf8 b/llvm/utils/lit/tests/Inputs/shtest-shell/diff-in.utf8
new file mode 100644
index 00000000000..86e041dad66
--- /dev/null
+++ b/llvm/utils/lit/tests/Inputs/shtest-shell/diff-in.utf8
@@ -0,0 +1,3 @@
+foo
+bar
+baz
OpenPOWER on IntegriCloud