jdk/test/com/sun/jdi/JdbExprTest.sh
changeset 45028 b0ea3c0bfb81
parent 32018 91c91b3d50a0
child 46880 b1fabc3a2ac7
equal deleted inserted replaced
45027:0cf367e546fb 45028:b0ea3c0bfb81
     1 #!/bin/sh
     1 #!/bin/sh
     2 
     2 
     3 #
     3 #
     4 # Copyright (c) 2013, 2014 Oracle and/or its affiliates. All rights reserved.
     4 # Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
     5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     6 #
     6 #
     7 # This code is free software; you can redistribute it and/or modify it
     7 # This code is free software; you can redistribute it and/or modify it
     8 # under the terms of the GNU General Public License version 2 only, as
     8 # under the terms of the GNU General Public License version 2 only, as
     9 # published by the Free Software Foundation.
     9 # published by the Free Software Foundation.
    51     static boolean aBoolean;
    51     static boolean aBoolean;
    52 
    52 
    53     public static void bkpt() {
    53     public static void bkpt() {
    54        int i = 0;     //@1 breakpoint
    54        int i = 0;     //@1 breakpoint
    55     }
    55     }
    56     
    56 
    57     public static void main(String[] args) {
    57     public static void main(String[] args) {
    58         bkpt();
    58         bkpt();
    59     }
    59     }
    60 }
    60 }
    61 EOF
    61 EOF
    71     cmd print java.lang.Long.MAX_VALUE
    71     cmd print java.lang.Long.MAX_VALUE
    72     jdbFailIfNotPresent " \= 9223372036854775807" 3
    72     jdbFailIfNotPresent " \= 9223372036854775807" 3
    73 
    73 
    74     cmd print java.lang.Long.MIN_VALUE
    74     cmd print java.lang.Long.MIN_VALUE
    75     jdbFailIfNotPresent " \= \-9223372036854775808" 3
    75     jdbFailIfNotPresent " \= \-9223372036854775808" 3
    76     
    76 
    77     cmd print 9223372036854775807L
    77     cmd print 9223372036854775807L
    78     jdbFailIfNotPresent "9223372036854775807L = 9223372036854775807" 3
    78     jdbFailIfNotPresent "9223372036854775807L = 9223372036854775807" 3
    79     cmd print 9223372036854775807
    79     cmd print 9223372036854775807
    80     jdbFailIfNotPresent "9223372036854775807 = 9223372036854775807" 3
    80     jdbFailIfNotPresent "9223372036854775807 = 9223372036854775807" 3
    81 
    81 
    82     cmd print -9223372036854775807L
    82     cmd print -9223372036854775807L
    83     jdbFailIfNotPresent "\-9223372036854775807L = \-9223372036854775807" 3
    83     jdbFailIfNotPresent "\-9223372036854775807L = \-9223372036854775807" 3
    84     cmd print -9223372036854775807
    84     cmd print -9223372036854775807
    85     jdbFailIfNotPresent "\-9223372036854775807 = \-9223372036854775807" 3
    85     jdbFailIfNotPresent "\-9223372036854775807 = \-9223372036854775807" 3
    86     
    86 
    87     cmd print -1
    87     cmd print -1
    88     jdbFailIfNotPresent "\-1 = \-1" 3
    88     jdbFailIfNotPresent "\-1 = \-1" 3
    89     cmd print 1L
    89     cmd print 1L
    90     jdbFailIfNotPresent "1L = 1" 3
    90     jdbFailIfNotPresent "1L = 1" 3
    91     cmd print -1L
    91     cmd print -1L
    92     jdbFailIfNotPresent "\-1L = \-1" 3
    92     jdbFailIfNotPresent "\-1L = \-1" 3
    93     cmd print 0x1
    93     cmd print 0x1
    94     jdbFailIfNotPresent "0x1 = 1" 3
    94     jdbFailIfNotPresent "0x1 = 1" 3
    95     
    95 
    96     cmd set $classname.aLong = 9223372036854775807L
    96     cmd set $classname.aLong = 9223372036854775807L
    97     cmd print $classname.aLong
    97     cmd print $classname.aLong
    98     jdbFailIfNotPresent "$classname.aLong = 9223372036854775807" 3
    98     jdbFailIfNotPresent "$classname.aLong = 9223372036854775807" 3
    99 
    99 
   100     cmd set $classname.anInt = java.lang.Integer.MAX_VALUE + 1
   100     cmd set $classname.anInt = java.lang.Integer.MAX_VALUE + 1
   140         TESTSRC=.
   140         TESTSRC=.
   141     fi
   141     fi
   142 
   142 
   143     for ii in . $TESTSRC $TESTSRC/.. ; do
   143     for ii in . $TESTSRC $TESTSRC/.. ; do
   144         if [ -r "$ii/ShellScaffold.sh" ] ; then
   144         if [ -r "$ii/ShellScaffold.sh" ] ; then
   145             . $ii/ShellScaffold.sh 
   145             . $ii/ShellScaffold.sh
   146             break
   146             break
   147         fi
   147         fi
   148     done
   148     done
   149 }
   149 }
   150 
   150