~ubuntu-branches/ubuntu/quantal/nspr/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/tests/sigpipe.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-08-10 11:34:26 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090810113426-3uv4diflrkcbdimm
Tags: 4.8-0ubuntu1
* New upstream release: 4.8 (LP: #387812)
* adjust patches to changed upstreanm codebase
  - update debian/patches/99_configure.patch
* update shlibs symbols to include new API elements
  - update debian/libnspr4-0d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
        fprintf(stderr, "write to broken pipe should have failed with EPIPE but returned %d\n", rv);
93
93
        exit(1);
94
94
    }
 
95
#ifdef SYMBIAN
 
96
    /* Have mercy on the unknown 142 errno, it seems ok */
 
97
    if (errno != EPIPE && errno != 142) {
 
98
#else
95
99
    if (errno != EPIPE) {
 
100
#endif
96
101
        fprintf(stderr, "write to broken pipe failed but with wrong errno: %d\n", errno);
97
102
        exit(1);
98
103
    }
100
105
    printf("write to broken pipe failed with EPIPE, as expected\n");
101
106
}
102
107
 
103
 
int main(void)
 
108
int main(int argc, char **argv)
104
109
{
105
110
    PRThread *thread;
106
111