##// END OF EJS Templates
patch: don't separate \r and \n when colorizing diff output...
patch: don't separate \r and \n when colorizing diff output When displaying diffs, \r at the end of a line is treated as trailing whitespace. This causes an ANSI escape code to be inserted between \r and \n. Some programs, such as less since version 530 (maybe earlier, but at least not version 487) displays ^M when it encounters a lone \r. This causes a lot of noise in diff output on Windows, where \r\n is used to terminate lines. We avoid that by treating both \n and \r\n as end of line when considering trailing whitespace.

File last commit:

r38264:46dcb9f1 default
r38649:e1987261 default
Show More
test-fuzz-targets.t
18 lines | 410 B | text/troff | Tads3Lexer
/ tests / test-fuzz-targets.t
Yuya Nishihara
test-fuzz-targets: look for clang-6.0 binary as well...
r38238 #require test-repo
Augie Fackler
contrib: add some basic scaffolding for some fuzz test targets...
r35688 $ cd $TESTDIR/../contrib/fuzz
Yuya Nishihara
test-fuzz-targets: look for clang-6.0 binary as well...
r38238
#if clang-libfuzzer
Yuya Nishihara
test-fuzz-targets: rebuild executable silently...
r38237 $ make -s clean all
Yuya Nishihara
test-fuzz-targets: look for clang-6.0 binary as well...
r38238 #endif
#if no-clang-libfuzzer clang-6.0
$ make -s clean all CC=clang-6.0 CXX=clang++-6.0
#endif
#if no-clang-libfuzzer no-clang-6.0
$ exit 80
#endif
Augie Fackler
tests: update fuzzer tests to include both fuzzers...
r38190 Just run the fuzzers for five seconds each to verify it works at all.
Augie Fackler
contrib: add some basic scaffolding for some fuzz test targets...
r35688 $ ./bdiff -max_total_time 5
Augie Fackler
fuzz: new fuzzer for the mpatch code...
r38264 $ ./mpatch -max_total_time 5
Augie Fackler
tests: update fuzzer tests to include both fuzzers...
r38190 $ ./xdiff -max_total_time 5