changeset 5859:4c241e42a3e4

8032662: test/compiler/ciReplay/TestSA.sh should report ulimit issues Reviewed-by: kvn, iignatyev Contributed-by: stefan.sarne@oracle.com
author sla
date Mon, 27 Jan 2014 10:57:52 +0100
parents b8a500a7b9bf
children 50bb249de889 d5b8799dfbd7
files test/compiler/ciReplay/common.sh
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/compiler/ciReplay/common.sh	Mon Jan 27 13:46:54 2014 +0400
+++ b/test/compiler/ciReplay/common.sh	Mon Jan 27 10:57:52 2014 +0100
@@ -196,6 +196,11 @@
     then
         # enable core dump
         ulimit -c unlimited
+        new_ulimit=`ulimit -c`
+        if [ $new_ulimit != "unlimited" -a $new_ulimit != "-1" ]
+        then
+            test_fail 2 "CHECK :: ULIMIT" "Could not set 'ulimit -c unlimited'. 'ulimit -c' returns : $new_ulimit"
+        fi
 
         if [ $VM_OS = "solaris" ]
         then
@@ -228,7 +233,10 @@
     
     core_locations=`grep -i core crash.out | grep "location:" | \
             sed -e 's/.*location: //'`
+    echo CRASH OUTPUT:
+    cat crash.out    
     rm crash.out 
+    
     # processing core locations for *nix
     if [ $VM_OS != "windows" ]
     then