• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Check that diff falls back to binary mode if it cannot decode a file.
2
3# RUN: diff -u diff-in.bin diff-in.bin
4# RUN: diff -u diff-in.utf16 diff-in.bin && false || true
5# RUN: diff -u diff-in.utf8 diff-in.bin && false || true
6# RUN: diff -u diff-in.bin diff-in.utf8 && false || true
7
8# RUN: cat diff-in.bin | diff -u - diff-in.bin
9# RUN: cat diff-in.bin | diff -u diff-in.bin -
10# RUN: cat diff-in.bin | diff -u diff-in.utf16 - && false || true
11# RUN: cat diff-in.bin | diff -u diff-in.utf8 - && false || true
12# RUN: cat diff-in.bin | diff -u - diff-in.utf8 && false || true
13
14# Fail so lit will print output.
15# RUN: false
16