1# RUN: echo 1 > %t.foo 2# RUN: echo 2 >> %t.foo 3# RUN: echo 3 >> %t.foo 4# RUN: echo 4 >> %t.foo 5# RUN: echo 5 >> %t.foo 6# RUN: echo 6 foo >> %t.foo 7# RUN: echo 7 >> %t.foo 8# RUN: echo 8 >> %t.foo 9# RUN: echo 9 >> %t.foo 10# RUN: echo 10 >> %t.foo 11# RUN: echo 11 >> %t.foo 12 13# RUN: echo 1 > %t.bar 14# RUN: echo 2 >> %t.bar 15# RUN: echo 3 >> %t.bar 16# RUN: echo 4 >> %t.bar 17# RUN: echo 5 >> %t.bar 18# RUN: echo 6 bar >> %t.bar 19# RUN: echo 7 >> %t.bar 20# RUN: echo 8 >> %t.bar 21# RUN: echo 9 >> %t.bar 22# RUN: echo 10 >> %t.bar 23# RUN: echo 11 >> %t.bar 24 25# Default is 3 lines of context. 26# RUN: diff -u %t.foo %t.bar && false || true 27 28# Override default of 3 lines of context. 29# RUN: diff -U 2 %t.foo %t.bar && false || true 30# RUN: diff -U4 %t.foo %t.bar && false || true 31# RUN: diff -U0 %t.foo %t.bar && false || true 32 33# Check bad -U argument. 34# RUN: diff -U 30.1 %t.foo %t.foo && false || true 35# RUN: diff -U-1 %t.foo %t.foo && false || true 36 37# Fail so lit will print output. 38# RUN: false 39