Print this page
sync further changes from uts/aslr

Split Close
Expand all
Collapse all
          --- old/usr/src/test/os-tests/tests/secflags/secflags_core.sh
          +++ new/usr/src/test/os-tests/tests/secflags/secflags_core.sh
↓ open down ↓ 39 lines elided ↑ open up ↑
  40   40  EOF
  41   41  
  42   42  /usr/bin/psecflags core.${pid} | grep -v '[LU]:' > gcore-output.$$
  43   43  
  44   44  if ! diff -u gcore-expected.$$ gcore-output.$$; then
  45   45      exit 1;
  46   46  fi
  47   47  
  48   48  ## kernel-produced core
  49   49  kill -SEGV $pid
       50 +wait $pid >/dev/null 2>&1
  50   51  
  51   52  cat > core-expected.$$ <<EOF
  52   53  core 'core' of $pid:    sleep 100000
  53   54          E:      aslr
  54   55          I:      aslr
  55   56  EOF
  56   57  
  57   58  /usr/bin/psecflags core | grep -v '[LU]:' > core-output.$$
  58   59  
  59   60  if ! diff -u core-expected.$$ core-output.$$; then
  60   61      exit 1;
  61   62  fi
  62   63  
  63   64  exit 0
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX