Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
5.5, 10.0, 10.1, 10.2, 10.3, 10.4
Description
The main concern here is that the comparison might be used in regression tests, and the wrong behavior will cause false negatives – that is, regressions might stay unnoticed.
Run the test as
CHECK_NUMBER=<number of your choosing> perl ./mtr testname
|
MTR test |
if ($CHECK_NUMBER < 1) |
{
|
echo # $CHECK_NUMBER is less than 1; |
}
|
if ($CHECK_NUMBER > 1) |
{
|
echo # $CHECK_NUMBER is greater than 1; |
}
|
if ($CHECK_NUMBER == 1) |
{
|
echo # $CHECK_NUMBER is equal to 1; |
}
|
Results (on 10.2, but they appear the same everywhere):
# 2147483647 is greater than 1
|
# 2147483648 is less than 1
|
# 100000000000 is greater than 1
|
# 1000000000000 is less than 1
|