diff options
author | asomers <asomers@FreeBSD.org> | 2017-07-31 23:03:10 +0000 |
---|---|---|
committer | asomers <asomers@FreeBSD.org> | 2017-07-31 23:03:10 +0000 |
commit | cb943ecd288448a4383a7a30a38f3089dc58114c (patch) | |
tree | 52f0107c9218372b49d5256dd0475cef8d0a094f /bin | |
parent | 2b7b4e5952e98756d2e4d3e2b5e6c642f8571ad1 (diff) | |
download | FreeBSD-src-cb943ecd288448a4383a7a30a38f3089dc58114c.zip FreeBSD-src-cb943ecd288448a4383a7a30a38f3089dc58114c.tar.gz |
MFC r320269:
style fixes in bin/echo/tests
Submitted by: shivansh
Reviewed by: asomers
X-MFC-With: 319626
Sponsored by: Google, Inc (GSoC 2017)
Differential Revision: https://reviews.freebsd.org/D11318
Diffstat (limited to 'bin')
-rw-r--r-- | bin/echo/tests/echo_test.sh | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/bin/echo/tests/echo_test.sh b/bin/echo/tests/echo_test.sh index ddfd890..5c5fc1f 100644 --- a/bin/echo/tests/echo_test.sh +++ b/bin/echo/tests/echo_test.sh @@ -27,29 +27,33 @@ # atf_test_case n_output -n_output_head() { - atf_set "descr" "Verify that echo(1) does not print the trailing " \ - "newline character with option '-n'" +n_output_head() +{ + atf_set "descr" "Verify that echo(1) does not print the trailing " \ + "newline character with option '-n'" } -n_output_body() { - atf_check -s ignore -o inline:"Hello world" \ - /bin/echo -n "Hello world" +n_output_body() +{ + atf_check -s ignore -o inline:"Hello world" \ + /bin/echo -n "Hello world" } atf_test_case append_c_output -append_c_output_head() { - atf_set "descr" "Verify that echo(1) does not print the trailing newline " \ - "character when '\c' is appended to the end of the string" +append_c_output_head() +{ + atf_set "descr" "Verify that echo(1) does not print the trailing newline " \ + "character when '\c' is appended to the end of the string" } -append_c_output_body() { - atf_check -s ignore -o inline:"Hello world" \ - /bin/echo "Hello world\c" +append_c_output_body() +{ + atf_check -s ignore -o inline:"Hello world" \ + /bin/echo "Hello world\c" } atf_init_test_cases() { - atf_add_test_case n_output - atf_add_test_case append_c_output + atf_add_test_case n_output + atf_add_test_case append_c_output } |