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. |
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 |