FreeBSD Bugzilla – Attachment 215867 Details for
Bug 247126
zgrep(1) does not handle -f FILE correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add two zgrep test cases
patch3.txt (text/plain), 1.22 KB, created by
Craig Leres
on 2020-06-23 01:03:00 UTC
(
hide
)
Description:
Add two zgrep test cases
Filename:
MIME Type:
Creator:
Craig Leres
Created:
2020-06-23 01:03:00 UTC
Size:
1.22 KB
patch
obsolete
>Index: contrib/netbsd-tests/usr.bin/grep/t_grep.sh >=================================================================== >--- contrib/netbsd-tests/usr.bin/grep/t_grep.sh (revision 362521) >+++ contrib/netbsd-tests/usr.bin/grep/t_grep.sh (working copy) >@@ -214,6 +214,32 @@ > atf_check -o file:"$(atf_get_srcdir)/d_zgrep.out" zgrep -h line d_input.gz > } > >+atf_test_case zgrep_combined_flags >+zgrep_combined_flags_head() >+{ >+ atf_set "descr" "Checks for zgrep wrapper problems with combined flags (PR 247126)" >+} >+zgrep_combined_flags_body() >+{ >+ echo 'foo bar' > test >+ >+ atf_check -o inline:"foo bar\n" zgrep -we foo test >+} >+ >+atf_test_case zgrep_fflag >+zgrep_fflag_head() >+{ >+ atf_set "descr" "Checks for zgrep wrapper problems with -f FILE (PR 247126)" >+} >+zgrep_fflag_body() >+{ >+ echo foo > pattern >+ echo foobar > test >+ >+ # Avoid hang on reading from stdin in the failure case >+ atf_check -o inline:"foobar\n" zgrep -f pattern test </dev/null >+} >+ > atf_test_case nonexistent > nonexistent_head() > { >@@ -826,6 +852,8 @@ > atf_add_test_case file_exp > atf_add_test_case egrep > atf_add_test_case zgrep >+ atf_add_test_case zgrep_combined_flags >+ atf_add_test_case zgrep_fflag > atf_add_test_case nonexistent > atf_add_test_case context2 > # Begin FreeBSD
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 247126
:
215407
|
215428
| 215867