diff options
| author | Nik Clayton <nik@FreeBSD.org> | 2004-11-11 19:47:55 +0000 |
|---|---|---|
| committer | Nik Clayton <nik@FreeBSD.org> | 2004-11-11 19:47:55 +0000 |
| commit | 00e13b1d679d242d6db62cab43303efe327afdbc (patch) | |
| tree | cfebca4a0526247931bc6bdde73f15f72f3e92d0 /tools/regression/pipe | |
| parent | 350bc1206a6c217c385989d7585a3c4d56851496 (diff) | |
Notes
Diffstat (limited to 'tools/regression/pipe')
| -rw-r--r-- | tools/regression/pipe/bigpipetest.c | 3 | ||||
| -rw-r--r-- | tools/regression/pipe/bigpipetest.t | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tools/regression/pipe/bigpipetest.c b/tools/regression/pipe/bigpipetest.c index d5185c5bf71b..c5983fa5559e 100644 --- a/tools/regression/pipe/bigpipetest.c +++ b/tools/regression/pipe/bigpipetest.c @@ -48,6 +48,8 @@ int main() char buf[BIG_PIPE_SIZE]; /* any value over PIPE_SIZE should do */ int i, flags, fd[2]; + printf("1..1\n"); + if (pipe(fd) < 0) { perror("pipe"); exit(1); } flags = fcntl(fd[1], F_GETFL); @@ -75,5 +77,6 @@ int main() close(fd[0]); memset(buf, 0, sizeof buf); for (i = 0; i < 1000; i++) write_frame(fd[1], buf, sizeof buf); + printf("ok 1\n"); exit(0); } diff --git a/tools/regression/pipe/bigpipetest.t b/tools/regression/pipe/bigpipetest.t new file mode 100644 index 000000000000..8bdfd03be81b --- /dev/null +++ b/tools/regression/pipe/bigpipetest.t @@ -0,0 +1,10 @@ +#!/bin/sh +# $FreeBSD$ + +cd `dirname $0` + +executable=`basename $0 .t` + +make $executable 2>&1 > /dev/null + +exec ./$executable |
