changeset 614:0597ca82c26a

Tests: respected byteorder value on longsize=4 but USE_64_BIT_INT.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 30 Jun 2015 12:36:48 +0300
parents 36a267631e03
children f27fb891503c
files upstream_hash_memcached.t userid.t
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/upstream_hash_memcached.t
+++ b/upstream_hash_memcached.t
@@ -141,7 +141,7 @@ is_deeply(ngx('/'), mem($memd), 'cache::
 	[ '127.0.0.1:8081', '127.0.0.1:8082', '127.0.0.1:8083'] });
 
 TODO: {
-local $TODO = 'not yet' unless $Config{byteorder} eq '12345678'
+local $TODO = 'not yet' unless $Config{byteorder} =~ '1234'
 	or $t->has_version('1.9.1');
 
 is_deeply(ngx('/c'), mem($memd), 'cache::memcached::fast');
@@ -161,7 +161,7 @@ is_deeply(ngx('/w'), mem($memd), 'cache:
 	{ address => '127.0.0.1:8083', weight => 1 }] });
 
 TODO: {
-local $TODO = 'not yet' unless $Config{byteorder} eq '12345678'
+local $TODO = 'not yet' unless $Config{byteorder} =~ '1234'
 	or $t->has_version('1.9.1');
 
 is_deeply(ngx('/cw'), mem($memd), 'cache::memcached::fast weight');
--- a/userid.t
+++ b/userid.t
@@ -204,7 +204,7 @@ like($r, qr/Set-Cookie:/, 'uid reset var
 
 is(substr(uid_set(http_get('/cv1')), 0, 8), '00000000', 'service default v1');
 
-my $bigendian = $Config{byteorder} eq '12345678' ? 0 : 1;
+my $bigendian = $Config{byteorder} =~ '1234' ? 0 : 1;
 my $addr = $bigendian ? "7F000001" : "0100007F";
 is(substr(uid_set(http_get('/')), 0, 8), $addr, 'service default v2');