test.patch revision 7083
7083N/A--- cffi-1.1.2/testing/cffi0/callback_in_thread.py 2015-06-09 03:04:07.000000000 -0700
7083N/A+++ cffi-1.1.2/testing/cffi0/callback_in_thread.py 2015-08-11 10:56:22.822161292 -0700
2756N/A @ffi.callback('int(*)(int,int)')
7083N/A--- cffi-1.1.2/testing/cffi0/test_verify.py 2015-06-09 03:04:07.000000000 -0700
7083N/A+++ cffi-1.1.2/testing/cffi0/test_verify.py 2015-08-12 14:17:18.300215250 -0700
7083N/A extra_compile_args.append('-Qunused-arguments')
7083N/A+ elif (sys.platform == 'sunos5'):
7083N/A py.test.skip("needs GCC or Clang")
7083N/A+ if sys.platform == 'sunos5':
7083N/A+ lib = ffi.verify(source, **kargs)
7083N/A extra_compile_args.remove('-Wconversion')
2756N/A+ if FFI().sizeof("long") == 8 and sys.platform != 'sunos5':
2756N/A- if sys.platform == 'win32' and 'U' in hidden_value:
2756N/A+ if sys.platform in ('win32', 'sunos5') and 'U' in hidden_value:
2756N/A- if c2c and sys.platform == 'win32':
2756N/A+ if c2c and sys.platform in ('win32', 'sunos5'):
7083N/A--- cffi-1.1.2/testing/cffi1/test_new_ffi_1.py 2015-06-09 03:04:07.000000000 -0700
7083N/A+++ cffi-1.1.2/testing/cffi1/test_new_ffi_1.py 2015-08-12 15:18:12.105387245 -0700
7083N/A DEFS = DEFS.replace('data[0]', 'data[1]') # not supported
7083N/A+ elif sys.platform == "sunos5":
7083N/A+ DEFS = DEFS.replace('data[0]', 'data[1]') # not supported
7083N/A+ DEFS_PACKED.replace('/*here*/', '__attribute__((packed))'))
7083N/A DEFS_PACKED.replace('/*here*/', '__attribute__((packed))'))
7083N/A- sys.platform == "win32") # (but not on msvc)
7083N/A+ sys.platform in ("win32", "sunos5")) # (but not on msvc or SS)
7083N/A- if sys.platform == "win32":
7083N/A+ if sys.platform in ("win32", "sunos5"):
7083N/A py.test.skip("enums are not unsigned")
7083N/A- if sys.platform == "win32":
7083N/A+ if sys.platform in ("win32", "sunos5"):
7083N/A py.test.skip("array of length 0 not supported")
7083N/A--- cffi-1.1.2/testing/cffi1/test_recompiler.py 2015-06-09 03:04:10.000000000 -0700
7083N/A+++ cffi-1.1.2/testing/cffi1/test_recompiler.py 2015-08-11 11:08:16.757848317 -0700
7083N/A kwds.setdefault('undef_macros', ['NDEBUG'])
7083N/A ffi.set_source(module_name, source)
7083N/A- if not os.environ.get('NO_CPP'): # test the .cpp mode too
7083N/A+ if sys.platform == 'sunos5':
7083N/A+ elif not os.environ.get('NO_CPP'): # test the .cpp mode too
7083N/A kwds.setdefault('source_extension', '.cpp')
7083N/A+ py.test.skip("needs GCC or Clang")
7083N/A+ py.test.skip("needs GCC or Clang")
7083N/A+ py.test.skip("needs GCC or Clang")
7083N/A--- cffi-1.1.2/testing/cffi1/test_verify1.py 2015-06-09 03:04:07.000000000 -0700
7083N/A+++ cffi-1.1.2/testing/cffi1/test_verify1.py 2015-08-12 15:02:07.774160223 -0700
7083N/A extra_compile_args.append('-Qunused-arguments')
7083N/A+ elif (sys.platform == 'sunos5'):
7083N/A py.test.skip("needs GCC or Clang")
7083N/A+ if sys.platform == 'sunos5':
7083N/A+ lib = ffi.verify(source, **kargs)
7083N/A extra_compile_args.remove('-Wconversion')
7083N/A+ if FFI().sizeof("long") == 8 and sys.platform != 'sunos5':
7083N/A- if sys.platform == 'win32' and 'U' in hidden_value:
7083N/A+ if sys.platform in ('win32', 'sunos5') and 'U' in hidden_value:
7083N/A assert ffi.sizeof("enum foo_e") == expected_size
7083N/A- if sys.platform != 'win32':
7083N/A+ if sys.platform not in ('win32', 'sunos5'):
7083N/A- if c2c and sys.platform == 'win32':
7083N/A+ if c2c and sys.platform in ('win32', 'sunos5'):
7083N/A--- cffi-1.1.2/testing/cffi0/test_ownlib.py 2015-06-09 03:04:07.000000000 -0700
7083N/A+++ cffi-1.1.2/testing/cffi0/test_ownlib.py 2015-08-12 13:55:21.239982926 -0700
7083N/A from cffi.backend_ctypes import CTypesBackend
7083N/A from testing.udir import udir
7083N/A if sys.platform == 'win32':