Commit 65043f48 authored by Mark Andrews's avatar Mark Andrews
Browse files

force numeric comparision

parent c45b7e16
......@@ -14,7 +14,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.24 2011/05/02 01:35:04 marka Exp $
# $Id: tests.sh,v 1.25 2011/05/02 05:05:05 marka Exp $
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
......@@ -902,10 +902,10 @@ check_interval () {
x = x + 24*3600;
if (x != int(x))
x = int(x + 1);
if (x > interval)
if (int(x) > int(interval))
exit (1);
}
END { if (x != interval) exit(1) }' interval=$2
END { if (int(x) != int(interval)) exit(1) }' interval=$2
return $?
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment