Print this page
8858 /usr/bin/grep doesn't support -E option
4580 /usr/bin/grep can't handle multibyte characters
8929 8868 tests are not delivered with system/test/utiltest
8860 Example in grep(1) is incorrect
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuripv@gmx.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libshell/common/tests/sun_solaris_cr_6887363_shell_sometimes_mishandles_return_value_of_its_child_process.sh
          +++ new/usr/src/lib/libshell/common/tests/sun_solaris_cr_6887363_shell_sometimes_mishandles_return_value_of_its_child_process.sh
↓ open down ↓ 164 lines elided ↑ open up ↑
 165  165  exit 0
 166  166  EOF
 167  167  }
 168  168  
 169  169  # FIXME: we reset the VMALLOC_OPTIONS (and the depreciated VMDEBUG (for now)) variable for the run to avoid
 170  170  # that the test may run for hours. This may require re-investigation why this happens.
 171  171  out="$(unset VMALLOC_OPTIONS VMDEBUG ; cat_test | ${SHELL} 2>&1)" || err_exit "Unexpected exit code $?"
 172  172  [[ "${out}" != "" ]] || err_exit "No output from test"
 173  173  
 174  174  # filter output and check it
 175      -out2="$(/usr/xpg4/bin/egrep -v '^((read-seq|read-rand|syncread-seq|syncread-seq)[[:space:][:blank:]]*)*$' <<<"${out}")"
      175 +out2="$(/usr/bin/egrep -v '^((read-seq|read-rand|syncread-seq|syncread-seq)[[:space:][:blank:]]*)*$' <<<"${out}")"
 176  176  [[ "${out2}" == "" ]] || err_exit "Unexpected output '${out2}'"
 177  177  
 178  178  
 179  179  cd "${ocwd}"
 180  180  rmdir "${tmpdir}" || err_exit "Cannot remove temporary directory ${tmpdir}".
 181  181  
 182  182  # tests done
 183  183  exit $((Errors))
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX