| 1 |
# test integer limits. Set and print variables and print constants. |
| 2 |
|
| 3 |
set test "limits" |
| 4 |
set ::result_string {Maximum signed 32-bit number |
| 5 |
2147483647 0x7fffffff |
| 6 |
2147483647 0x7fffffff |
| 7 |
2147483647 0x7fffffff |
| 8 |
|
| 9 |
Maximum unsigned 32-bit number |
| 10 |
4294967295 0xffffffff |
| 11 |
4294967295 0xffffffff |
| 12 |
4294967295 0xffffffff |
| 13 |
|
| 14 |
Minimum signed 32-bit number |
| 15 |
-2147483648 0xffffffff80000000 |
| 16 |
-2147483648 0xffffffff80000000 |
| 17 |
-2147483648 0xffffffff80000000 |
| 18 |
-2147483648 0xffffffff80000000 |
| 19 |
|
| 20 |
Maximum signed 64-bit number |
| 21 |
9223372036854775807 0x7fffffffffffffff |
| 22 |
9223372036854775807 0x7fffffffffffffff |
| 23 |
9223372036854775807 0x7fffffffffffffff |
| 24 |
|
| 25 |
Maximum unsigned 64-bit number |
| 26 |
18446744073709551615d 0xffffffffffffffff |
| 27 |
18446744073709551615d 0xffffffffffffffff |
| 28 |
18446744073709551615d 0xffffffffffffffff |
| 29 |
|
| 30 |
Minimum signed 64-bit number |
| 31 |
-9223372036854775808 0x8000000000000000 |
| 32 |
-9223372036854775808 0x8000000000000000 |
| 33 |
-9223372036854775808 0x8000000000000000 |
| 34 |
-9223372036854775808 0x8000000000000000 |
| 35 |
-9223372036854775808 0x8000000000000000} |
| 36 |
|
| 37 |
foreach runtime [get_runtime_list] { |
| 38 |
if {$runtime != ""} { |
| 39 |
stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime |
| 40 |
} else { |
| 41 |
stap_run2 $srcdir/$subdir/$test.stp |
| 42 |
} |
| 43 |
} |