Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
Use stdout instead of stderr in testsuite
Browse files Browse the repository at this point in the history
This patches uses stdout instead stderr when giving out normal status
messages in the testsuite.
  • Loading branch information
ensc committed Apr 6, 2014
1 parent c015cd4 commit a6f163e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/atexit.c
Expand Up @@ -2,7 +2,7 @@
#include <unistd.h>

void blah(void) {
write(2,"atexit\n",7);
write(1,"atexit\n",7);
}

int main() {
Expand Down
2 changes: 1 addition & 1 deletion test/malloc-debugger.c
Expand Up @@ -4,7 +4,7 @@
int main() {
char* c=malloc(13);
char* tmp;
fprintf(stderr,"got %p\n",c);
fprintf(stdout,"got %p\n",c);
c[0]=14;
// c[15]=0;
tmp=realloc(c,12345);
Expand Down
2 changes: 1 addition & 1 deletion test/sendfile.c
Expand Up @@ -11,5 +11,5 @@ int main() {

printf("sendfile returned %d\n",ret);

return 0;
return ret<0 ? 1 : 0;
}
2 changes: 1 addition & 1 deletion test/waitpid.c
Expand Up @@ -11,7 +11,7 @@ int main() {
perror("fork");
_exit(1);
case 0:
fprintf(stderr,"child, my pid is %u\n",getpid());
fprintf(stdout,"child, my pid is %u\n",getpid());
sleep(1);
_exit(23);
}
Expand Down

0 comments on commit a6f163e

Please sign in to comment.