On Wed, 2009-07-22 at 15:46 +1000, Bojan Smojver wrote:
> Maybe we need to add APR_PROGRAM_ENV to procattr there?
See if this works for you.
--
Bojan
Index: test/testflock.c
===================================================================
--- test/testflock.c (revision 796615)
+++ test/testflock.c (working copy)
@@ -39,6 +39,9 @@
APR_NO_PIPE);
APR_ASSERT_SUCCESS(tc, "Couldn't set io in procattr", rv);
+ rv = apr_procattr_cmdtype_set(procattr, APR_PROGRAM_ENV);
+ APR_ASSERT_SUCCESS(tc, "Couldn't set copy environment", rv);
+
rv = apr_procattr_error_check_set(procattr, 1);
APR_ASSERT_SUCCESS(tc, "Couldn't set error check in procattr", rv);
Index: test/testoc.c
===================================================================
--- test/testoc.c (revision 796615)
+++ test/testoc.c (working copy)
@@ -73,6 +73,9 @@
APR_NO_PIPE);
ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
+ rv = apr_procattr_cmdtype_set(procattr, APR_PROGRAM_ENV);
+ APR_ASSERT_SUCCESS(tc, "Couldn't set copy environment", rv);
+
rv = apr_proc_create(&newproc, TESTBINPATH "occhild" EXTENSION, args, NULL, procattr, p);
ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
ABTS_PTR_NOTNULL(tc, newproc.in);