~ubuntu-branches/ubuntu/trusty/wvstreams/trusty

« back to all changes in this revision

Viewing changes to utils/t/wvpushdir.t.cc

  • Committer: Bazaar Package Importer
  • Author(s): Peter Eisentraut
  • Date: 2008-04-05 14:47:52 UTC
  • mfrom: (0.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080405144752-gka8v86xuo52fmto
Tags: 4.4.1-0.2
* Non-maintainer upload.
* Fixed dependency information LSB header in init.d script
  (closes: #470067)

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    WVPASS(newpushdir.isok());
57
57
}
58
58
 
 
59
#ifndef _WIN32
59
60
WVTEST_MAIN("pushdir is allocated on the STACK only")
60
61
{
61
62
    pid_t child = fork(); 
62
63
 
63
64
    if (child == 0)
64
65
    {
65
 
        WvPushDir *newpushdir = new WvPushDir("anyfile");
 
66
        (void)new WvPushDir("anyfile");
66
67
 
67
68
        // should never be reached, if it does, it should return good so
68
69
        //  that we'll fail when we check for a fail
78
79
    waitpid(child, &status, 0);
79
80
    WVPASSEQ(WTERMSIG(status), 6); // sig_abrt
80
81
}
 
82
#endif