freebsd-dev/usr.bin/diff/tests
Kyle Evans ac05de1788 diff: fix side_by_side after r363679
It's currently unclear to me how this could have worked previously; \n here
is not a literal newline but actual '\' 'n', and was getting passed to the
underlying regex engine as such. regex(3) does not translate this to a
newline, and this became an error because we don't really allow escaping
of arbitrary ordinary characters anymore.

Run the pattern strings through printf to make sure we're dealing with real
newlines before passing them through to atf_check, which ultimately feeds
them directly to regcomp(3).

This fix is different than that will be needed for sed, in that this is the
proper way to inject newlines into search strings as long as regex(3)
won't combine \ + n as folks might expect.

Reported by:	Jenkins via lwhsu
MFC after:	1 week
2020-07-30 13:33:45 +00:00
..
Bflag_C.out diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
Bflag_D.out diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
Bflag_F.out diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
diff_test.sh diff: fix side_by_side after r363679 2020-07-30 13:33:45 +00:00
group-format.out Implement a basic --changed-group-format 2017-04-20 14:22:33 +00:00
header_ns.out diff: Show nanoseconds in -u/-c header line. 2017-03-26 19:47:43 +00:00
header.out diff: Fix mtime of file1 in -u/-c header line. 2017-03-26 14:09:25 +00:00
ifdef.out Add a regression test for diff -D 2017-04-20 11:32:18 +00:00
input1.in
input2.in
input_c1.in
input_c2.in
Makefile diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
Makefile.depend DIRDEPS_BUILD: Connect new directories. 2017-10-31 00:04:07 +00:00
simple_b.out
simple_e.out
simple_i.out
simple_n.out
simple_p.out
simple_u.out
simple_w.out
simple.out
unified_9999.out
unified_c9999.out
unified_p.out