php: remove the custom "env" loading in tests

Other than being too late for changing environment variables like
LD_LIBRARY_PATH, now it is no more needed.
This commit is contained in:
Pino Toscano
2014-03-12 19:29:56 +01:00
parent 5fbbfe7440
commit e411cf8269
3 changed files with 0 additions and 42 deletions

View File

@@ -2,20 +2,6 @@
Load the module and create a handle.
--FILE--
<?php
// See comment in php/run-php-tests.sh.
//putenv ('LIBGUESTFS_DEBUG=1');
if (! $fp = fopen ("env", "r")) {
die ("Error: cannot open environment file 'env'\n");
}
while (($buffer = fgets ($fp)) != false) {
putenv (chop ($buffer, "\n"));
}
if (!feof ($fp)) {
die ("Error: unexpected failure of fgets\n");
}
fclose ($fp);
$g = guestfs_create ();
if ($g == false) {
echo ("Failed to create guestfs_php handle.\n");

View File

@@ -2,20 +2,6 @@
Launch the appliance and run basic tests.
--FILE--
<?php
// See comment in php/run-php-tests.sh.
//putenv ('LIBGUESTFS_DEBUG=1');
if (! $fp = fopen ("env", "r")) {
die ("Error: cannot open environment file 'env'\n");
}
while (($buffer = fgets ($fp)) != false) {
putenv (chop ($buffer, "\n"));
}
if (!feof ($fp)) {
die ("Error: unexpected failure of fgets\n");
}
fclose ($fp);
$g = guestfs_create ();
if ($g == false) {
echo ("Failed to create guestfs_php handle.\n");

View File

@@ -2,20 +2,6 @@
Check function with optional arguments.
--FILE--
<?php
// See comment in php/run-php-tests.sh.
//putenv ('LIBGUESTFS_DEBUG=1');
if (! $fp = fopen ("env", "r")) {
die ("Error: cannot open environment file 'env'\n");
}
while (($buffer = fgets ($fp)) != false) {
putenv (chop ($buffer, "\n"));
}
if (!feof ($fp)) {
die ("Error: unexpected failure of fgets\n");
}
fclose ($fp);
$g = guestfs_create ();
if ($g == false) {
echo ("Failed to create guestfs_php handle.\n");