[BACK]Return to t_sed.sh CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / tests / usr.bin / sed

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/tests/usr.bin/sed/t_sed.sh between version 1.2 and 1.3

version 1.2, 2012/03/18 15:35:27 version 1.3, 2012/03/19 06:21:53
Line 36  emptybackref_head() {
Line 36  emptybackref_head() {
   
 emptybackref_body() {  emptybackref_body() {
   
         atf_check -o inline:"foobar\n" -x "echo foobar"  
   
         atf_check -o inline:"foo1bar1\n" \          atf_check -o inline:"foo1bar1\n" \
                 -x "echo foo1bar1 | sed -ne '/foo\(.*\)bar\1/p'"                  -x "echo foo1bar1 | sed -ne '/foo\(.*\)bar\1/p'"
   
Line 47  emptybackref_body() {
Line 45  emptybackref_body() {
                 -x "echo foobar | sed -ne '/foo\(.*\)bar\1/p'"                  -x "echo foobar | sed -ne '/foo\(.*\)bar\1/p'"
 }  }
   
   atf_test_case longlines
   longlines_head() {
           atf_set "descr" "Test that sed(1) handles " \
                           "long lines correctly (PR bin/42261)"
   }
   
   longlines_body() {
   
           str=$(awk 'BEGIN {while(x<2043){printf "x";x++}}')
           echo $str > input
   
           atf_check -o save:output -x "echo x | sed s,x,${str},g"
           atf_check -s exit:0 -o empty -e empty -x "diff input output"
   }
   
 atf_test_case rangeselection  atf_test_case rangeselection
 rangeselection_head() {  rangeselection_head() {
         atf_set "descr" "Test that sed(1) handles " \          atf_set "descr" "Test that sed(1) handles " \
Line 96  rangeselection_body() {
Line 109  rangeselection_body() {
   
 atf_init_test_cases() {  atf_init_test_cases() {
         atf_add_test_case emptybackref          atf_add_test_case emptybackref
           atf_add_test_case longlines
         atf_add_test_case rangeselection          atf_add_test_case rangeselection
 }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

CVSweb <webmaster@jp.NetBSD.org>