< prev index next >

test/runtime/6888954/vmerrors.sh

Print this page
rev 6999 : 8068013: [TESTBUG] Aix support in hotspot jtreg tests
Reviewed-by: ctornqvi, fzhinkin, farvidsson
   1 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
   2 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   3 #
   4 # This code is free software; you can redistribute it and/or modify it
   5 # under the terms of the GNU General Public License version 2 only, as
   6 # published by the Free Software Foundation.
   7 #
   8 # This code is distributed in the hope that it will be useful, but WITHOUT
   9 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  11 # version 2 for more details (a copy is included in the LICENSE file that
  12 # accompanied this code).
  13 #
  14 # You should have received a copy of the GNU General Public License version
  15 # 2 along with this work; if not, write to the Free Software Foundation,
  16 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  17 #
  18 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  19 # or visit www.oracle.com if you need additional information or have any
  20 # questions.
  21 #


  44 # export TESTJAVA TESTVMOPTS
  45 # sh test/runtime/6888954/vmerrors.sh
  46 
  47 ulimit -c 0 # no core files
  48 
  49 i=1
  50 rc=0
  51 
  52 assert_re='(assert|guarantee)[(](str|num).*failed: *'
  53 # for bad_data_ptr_re:
  54 # EXCEPTION_ACCESS_VIOLATION - Win-*
  55 # SIGILL - MacOS X
  56 # SIGSEGV - Linux-*, Solaris SPARC-*, Solaris X86-*
  57 #
  58 bad_data_ptr_re='(SIGILL|SIGSEGV|EXCEPTION_ACCESS_VIOLATION).* at pc='
  59 #
  60 # for bad_func_ptr_re:
  61 # EXCEPTION_ACCESS_VIOLATION - Win-*
  62 # SIGBUS - Solaris SPARC-64
  63 # SIGSEGV - Linux-*, Solaris SPARC-32, Solaris X86-*

  64 #
  65 # Note: would like to use "pc=0x00*0f," in the pattern, but Solaris SPARC-*
  66 # gets its signal at a PC in test_error_handler().
  67 #
  68 bad_func_ptr_re='(SIGBUS|SIGSEGV|EXCEPTION_ACCESS_VIOLATION).* at pc='
  69 guarantee_re='guarantee[(](str|num).*failed: *'
  70 fatal_re='fatal error: *'
  71 tail_1='.*expected null'
  72 tail_2='.*num='
  73 
  74 for re in                                                 \
  75     "${assert_re}${tail_1}"    "${assert_re}${tail_2}"    \
  76     "${guarantee_re}${tail_1}" "${guarantee_re}${tail_2}" \
  77     "${fatal_re}${tail_1}"     "${fatal_re}${tail_2}"     \
  78     "${fatal_re}.*truncated"   "ChunkPool::allocate"      \
  79     "ShouldNotCall"            "ShouldNotReachHere"       \
  80     "Unimplemented"            "$bad_data_ptr_re"         \
  81     "$bad_func_ptr_re"
  82 
  83 do
  84     i2=$i
  85     [ $i -lt 10 ] && i2=0$i
  86 
  87     "$TESTJAVA/bin/java" $TESTVMOPTS -XX:+IgnoreUnrecognizedVMOptions \
  88         -XX:-TransmitErrorReport \


   1 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
   2 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   3 #
   4 # This code is free software; you can redistribute it and/or modify it
   5 # under the terms of the GNU General Public License version 2 only, as
   6 # published by the Free Software Foundation.
   7 #
   8 # This code is distributed in the hope that it will be useful, but WITHOUT
   9 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  11 # version 2 for more details (a copy is included in the LICENSE file that
  12 # accompanied this code).
  13 #
  14 # You should have received a copy of the GNU General Public License version
  15 # 2 along with this work; if not, write to the Free Software Foundation,
  16 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  17 #
  18 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  19 # or visit www.oracle.com if you need additional information or have any
  20 # questions.
  21 #


  44 # export TESTJAVA TESTVMOPTS
  45 # sh test/runtime/6888954/vmerrors.sh
  46 
  47 ulimit -c 0 # no core files
  48 
  49 i=1
  50 rc=0
  51 
  52 assert_re='(assert|guarantee)[(](str|num).*failed: *'
  53 # for bad_data_ptr_re:
  54 # EXCEPTION_ACCESS_VIOLATION - Win-*
  55 # SIGILL - MacOS X
  56 # SIGSEGV - Linux-*, Solaris SPARC-*, Solaris X86-*
  57 #
  58 bad_data_ptr_re='(SIGILL|SIGSEGV|EXCEPTION_ACCESS_VIOLATION).* at pc='
  59 #
  60 # for bad_func_ptr_re:
  61 # EXCEPTION_ACCESS_VIOLATION - Win-*
  62 # SIGBUS - Solaris SPARC-64
  63 # SIGSEGV - Linux-*, Solaris SPARC-32, Solaris X86-*
  64 # SIGILL - Aix
  65 #
  66 # Note: would like to use "pc=0x00*0f," in the pattern, but Solaris SPARC-*
  67 # gets its signal at a PC in test_error_handler().
  68 #
  69 bad_func_ptr_re='(SIGBUS|SIGSEGV|SIGILL|EXCEPTION_ACCESS_VIOLATION).* at pc='
  70 guarantee_re='guarantee[(](str|num).*failed: *'
  71 fatal_re='fatal error: *'
  72 tail_1='.*expected null'
  73 tail_2='.*num='
  74 
  75 for re in                                                 \
  76     "${assert_re}${tail_1}"    "${assert_re}${tail_2}"    \
  77     "${guarantee_re}${tail_1}" "${guarantee_re}${tail_2}" \
  78     "${fatal_re}${tail_1}"     "${fatal_re}${tail_2}"     \
  79     "${fatal_re}.*truncated"   "ChunkPool::allocate"      \
  80     "ShouldNotCall"            "ShouldNotReachHere"       \
  81     "Unimplemented"            "$bad_data_ptr_re"         \
  82     "$bad_func_ptr_re"
  83 
  84 do
  85     i2=$i
  86     [ $i -lt 10 ] && i2=0$i
  87 
  88     "$TESTJAVA/bin/java" $TESTVMOPTS -XX:+IgnoreUnrecognizedVMOptions \
  89         -XX:-TransmitErrorReport \


< prev index next >