diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index ca40a1289f..1a2c0a750e 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -81,6 +81,10 @@ test_decode_color () { ' } +lf_to_nul () { + perl -pe 'y/\012/\000/' +} + nul_to_q () { perl -pe 'y/\000/Q/' }