[pypy-commit] cffi default: Skip on non-Linux.

arigo noreply at buildbot.pypy.org
Wed Jun 27 13:07:02 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r543:725c2cbfe719
Date: 2012-06-27 13:06 +0200
http://bitbucket.org/cffi/cffi/changeset/725c2cbfe719/

Log:	Skip on non-Linux.

diff --git a/demo/readdir.py b/demo/readdir.py
--- a/demo/readdir.py
+++ b/demo/readdir.py
@@ -1,7 +1,11 @@
 # A Linux-only demo
 #
+import sys
 from cffi import FFI
 
+if not sys.platform.startswith('linux'):
+    raise Exception("Linux-only demo")
+
 
 ffi = FFI()
 ffi.cdef("""
diff --git a/demo/readdir2.py b/demo/readdir2.py
--- a/demo/readdir2.py
+++ b/demo/readdir2.py
@@ -1,7 +1,11 @@
 # A Linux-only demo, using verify() instead of hard-coding the exact layouts
 #
+import sys
 from cffi import FFI
 
+if not sys.platform.startswith('linux'):
+    raise Exception("Linux-only demo")
+
 
 ffi = FFI()
 ffi.cdef("""


More information about the pypy-commit mailing list