~ubuntu-branches/ubuntu/hardy/apache2/hardy-proposed

« back to all changes in this revision

Viewing changes to srclib/apr/test/testproc.c

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Fritsch
  • Date: 2008-01-17 20:27:56 UTC
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20080117202756-hv38rjknhwa2ilwi
Tags: upstream-2.2.8
ImportĀ upstreamĀ versionĀ 2.2.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
    args[0] = "proc_child" EXTENSION;
51
51
    args[1] = NULL;
52
52
    
53
 
    rv = apr_proc_create(&newproc, "../proc_child" EXTENSION, args, NULL, 
 
53
    rv = apr_proc_create(&newproc, "../" TESTBINPATH "proc_child" EXTENSION, args, NULL, 
54
54
                         attr, p);
55
55
    ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
56
56
 
59
59
    length = strlen(TESTSTR);
60
60
    rv = apr_file_write(testfile, TESTSTR, &length);
61
61
    ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
62
 
    ABTS_INT_EQUAL(tc, strlen(TESTSTR), length);
 
62
    ABTS_SIZE_EQUAL(tc, strlen(TESTSTR), length);
63
63
 
64
64
    testfile = newproc.out;
65
65
    length = 256;
126
126
    args[0] = "proc_child";
127
127
    args[1] = NULL;
128
128
 
129
 
    rv = apr_proc_create(&newproc, "../proc_child" EXTENSION, args, NULL, 
 
129
    rv = apr_proc_create(&newproc, "../" TESTBINPATH "proc_child" EXTENSION, args, NULL, 
130
130
                         attr, p);
131
131
    ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
132
132