components/serf/patches/fix-tests.patch
changeset 7902 9e02778b84cd
parent 5243 cb29cf94919d
equal deleted inserted replaced
7901:e9ed9df5e5e4 7902:9e02778b84cd
     1 Changes needed to get the serf tests to build on Solaris.
       
     2 Remove a C++ style comment.
       
     3 Run the tests in a fixed order.
     1 Run the tests in a fixed order.
     4 
     2 
     5 These changes will be passed upstream.
     3 These changes will be passed upstream.
     6 
     4 
     7 --- serf-1.3.8/test/test_buckets.c.orig	2015-03-25 10:44:38.304724577 -0700
     5 --- serf-1.3.9/build/check.py.orig	2017-03-07 06:59:14.158690090 +0000
     8 +++ serf-1.3.8/test/test_buckets.c	2015-03-25 10:45:28.821762949 -0700
     6 +++ serf-1.3.9/build/check.py	2017-03-07 06:59:39.506830744 +0000
     9 @@ -1234,7 +1234,7 @@
     7 @@ -51,7 +51,7 @@
    10         uncompressed data, + 12 bytes. This info comes from zlib.h.
     8    TEST_ALL_EXE = os.path.join(test_builddir, TEST_ALL_EXE)
    11         Note: This isn't sufficient when using Z_NO_FLUSH and extremely compressed
       
    12         data. Use a buffer bigger than what we need. */
       
    13 -//    buf_size = orig_len + (orig_len / 1000) + 12;
       
    14 +/*    buf_size = orig_len + (orig_len / 1000) + 12; */
       
    15      buf_size = 100000;
       
    16  
       
    17      write_buf = apr_palloc(pool, buf_size);
       
    18 --- serf-1.3.8/build/check.py.orig	2015-03-25 11:55:50.065102813 -0700
       
    19 +++ serf-1.3.8/build/check.py	2015-03-25 11:56:17.277942011 -0700
       
    20 @@ -42,7 +42,7 @@
       
    21    TEST_ALL_EXE = os.path.join(testdir, TEST_ALL_EXE)
       
    22  
     9  
    23    # Find test responses and run them one by one
    10    # Find test responses and run them one by one
    24 -  for case in glob.glob(testdir + "/testcases/*.response"):
    11 -  for case in glob.glob(testdir + "/testcases/*.response"):
    25 +  for case in sorted(glob.glob(testdir + "/testcases/*.response")):
    12 +  for case in sorted(glob.glob(testdir + "/testcases/*.response")):
    26      print "== Testing %s ==" % (case)
    13      print "== Testing %s ==" % (case)