Print this page
12495 findtest is flaky

Split Close
Expand all
Collapse all
          --- old/usr/src/test/util-tests/tests/find/findtest.ksh
          +++ new/usr/src/test/util-tests/tests/find/findtest.ksh
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18  # Clearly, grossly incomplete.
  19   19  #
  20   20  
  21   21  export LC_ALL=C.UTF-8
  22   22  
  23   23  set -o pipefail
  24   24  unalias -a
  25   25  
  26   26  find_prog=/usr/bin/find
  27   27  find_prog_xpg4=/usr/xpg4/bin/find
  28      -find_dir="$(mktemp -d -p /tmp/)"
  29   28  find_exit=0
  30   29  
       30 +# make sure we don't end in 1 or 2, which breaks the tests
       31 +find_dir=/tmp/findtest.$$.dir
       32 +
       33 +mkdir $find_dir
       34 +
  31   35  testfind()
  32   36  {
  33   37          exp=$1
  34   38          shift
  35   39          cmd="$@"
  36   40  
  37   41          echo "TEST: $cmd"
  38   42  
  39   43          out=$(eval $cmd | tr '\n' ',')
  40   44  
↓ open down ↓ 32 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX