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/libsaveargs/tests/functional/test.sh
          +++ new/usr/src/lib/libsaveargs/tests/functional/test.sh
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13  #
  14   14  # Copyright 2012, Richard Lowe.
  15   15  #
  16   16  
  17   17  function tester {
  18   18      prog=${1}
  19   19      pattern=${2}
  20   20  
  21   21      ./$prog >/dev/null &
  22   22      pid=$!
  23      -    if (/usr/bin/amd64/pstack $pid | /usr/xpg4/bin/grep -q "${pattern}"); then
       23 +    if (/usr/bin/amd64/pstack $pid | /usr/bin/grep -q "${pattern}"); then
  24   24          echo "pass: ${prog}"
  25   25      else
  26   26          echo "FAIL: ${prog}"
  27   27      fi
  28   28      kill $pid
  29   29  }
  30   30  
  31   31  tester align "test (1, 2, 3, 4, 5)"
  32   32  tester basic "test (1, 2, 3, 4)"
  33   33  tester big-struct-ret "test (1, 2, 3, 4)"
  34   34  tester big-struct-ret-and-spill "test (1, 2, 3, 4, 5, 6, 7, 8)"
  35   35  tester small-struct-ret "test (1, 2, 3, 4)"
  36   36  tester small-struct-ret-and-spill "test (1, 2, 3, 4, 5, 6, 7, 8)"
  37   37  tester stack-spill "test (1, 2, 3, 4, 5, 6, 7, 8)"
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX