From e198ed0b2de4056fa7418007d13bfeb75bb489fc Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Fri, 4 Aug 2017 12:04:32 -0700 Subject: [PATCH] use new `logmsg` and `set --show` in tests --- tests/read.err | 6 ++++++ tests/read.in | 6 ++---- tests/read.out | 2 ++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/read.err b/tests/read.err index 8fda0a2b3..676c6e2d1 100644 --- a/tests/read.err +++ b/tests/read.err @@ -14,6 +14,12 @@ read: Expected 1 args, got 2 #################### # Test splitting input with IFS empty +#################### +# read -n tests + +#################### +# read -z tests + #################### # Chunked read tests diff --git a/tests/read.in b/tests/read.in index ddd6dee07..36cbcc98e 100644 --- a/tests/read.in +++ b/tests/read.in @@ -95,8 +95,7 @@ set -le IFS # read -n tests -echo -echo '# read -n tests' +logmsg read -n tests echo 'testing' | read -n 3 foo echo $foo echo 'test' | read -n 10 foo @@ -111,8 +110,7 @@ echo $foo # read -0 tests -echo -echo '# read -z tests' +logmsg read -z tests echo -n 'testing' | read -lz foo echo $foo echo -n 'test ing' | read -lz foo diff --git a/tests/read.out b/tests/read.out index 0d6450c85..aaef192e7 100644 --- a/tests/read.out +++ b/tests/read.out @@ -47,6 +47,7 @@ two 1 'h' 0 +#################### # read -n tests tes test @@ -55,6 +56,7 @@ tes tin t +#################### # read -z tests testing test ing