[Pkg-libvirt-commits] [libguestfs] 278/384: php: skip bindtests on 32bit platforms

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 16:57:53 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit f71168497d7a19116bd7e6c1c142520aec16ab62
Author: Pino Toscano <ptoscano at redhat.com>
Date:   Fri Feb 13 14:37:46 2015 +0100

    php: skip bindtests on 32bit platforms
    
    bindtests checks also 64bit int values, which won't work when the
    underlying platform has sizeof(long) < 8 (like on 32bit architectures).
---
 generator/bindtests.ml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/generator/bindtests.ml b/generator/bindtests.ml
index 2e9b6d3..723ab80 100644
--- a/generator/bindtests.ml
+++ b/generator/bindtests.ml
@@ -922,6 +922,11 @@ and generate_php_bindtests () =
 
   pr "--TEST--\n";
   pr "General PHP binding test.\n";
+  pr "--SKIPIF--\n";
+  pr "<?php\n";
+  pr "if (PHP_INT_SIZE < 8)\n";
+  pr "  print 'skip 32bit platforms due to limited int in PHP';\n";
+  pr "?>\n";
   pr "--FILE--\n";
   pr "<?php\n";
   pr "$g = guestfs_create ();\n";

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list