Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Side by Side Diff: sim/testsuite/sim/cris/c/pipe5.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sim/testsuite/sim/cris/c/mprotect1.c ('k') | sim/testsuite/sim/cris/c/readlink5.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Check that TRT happens for pipe corner cases (for our definition of TRT). 1 /* Check that TRT happens for pipe corner cases (for our definition of TRT).
2 #notarget: cris*-*-elf 2 #notarget: cris*-*-elf
3 #xerror: 3 #xerror:
4 #output: Terminating simulation due to writing pipe * from one single thread\n 4 #output: Terminating simulation due to writing pipe * from one single thread\n
5 #output: program stopped with signal 4.\n 5 #output: program stopped with signal 4 (*).\n
6 */ 6 */
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <signal.h> 8 #include <signal.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <stdio.h> 10 #include <stdio.h>
11 #include <unistd.h> 11 #include <unistd.h>
12 #include <errno.h> 12 #include <errno.h>
13 #include <limits.h> 13 #include <limits.h>
14 14
15 void err (const char *s) 15 void err (const char *s)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 happen with *any* amount written to a pipe with no reader if we'd 50 happen with *any* amount written to a pipe with no reader if we'd
51 support it - but we don't). Better to abort the simulation with a 51 support it - but we don't). Better to abort the simulation with a
52 suitable message. */ 52 suitable message. */
53 if (write (pip[1], buf, 100 * pipemax) != -1 53 if (write (pip[1], buf, 100 * pipemax) != -1
54 || errno != EFBIG) 54 || errno != EFBIG)
55 err ("write mucho"); 55 err ("write mucho");
56 56
57 printf ("pass\n"); 57 printf ("pass\n");
58 exit (0); 58 exit (0);
59 } 59 }
OLDNEW
« no previous file with comments | « sim/testsuite/sim/cris/c/mprotect1.c ('k') | sim/testsuite/sim/cris/c/readlink5.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698