summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.syscall/pipe.c
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2010-03-19 20:57:01 +0100
committerMark Wielaard <mjw@redhat.com>2010-03-19 21:03:14 +0100
commit824dd80202a13092d4cac5faa84d67982845dd50 (patch)
tree8a71a62bde5cbb6ef7d73bbdb95639785747d845 /testsuite/systemtap.syscall/pipe.c
parentfdba3aba0a17395abfe92afd1f739fc6a61c9266 (diff)
downloadsystemtap-steved-824dd80202a13092d4cac5faa84d67982845dd50.tar.gz
systemtap-steved-824dd80202a13092d4cac5faa84d67982845dd50.tar.xz
systemtap-steved-824dd80202a13092d4cac5faa84d67982845dd50.zip
Add ia64 pipe result support. Relax pipe syscall test a little.
* tapset/syscalls2.stp (syscall.pipe.return): ia64 provides pipe0, pipe1 results through (user) registers. * testsuite/systemtap.syscall/pipe.c: Only expect zero as input fildes.
Diffstat (limited to 'testsuite/systemtap.syscall/pipe.c')
-rw-r--r--testsuite/systemtap.syscall/pipe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/systemtap.syscall/pipe.c b/testsuite/systemtap.syscall/pipe.c
index 36e86e9f..8eea2910 100644
--- a/testsuite/systemtap.syscall/pipe.c
+++ b/testsuite/systemtap.syscall/pipe.c
@@ -9,11 +9,11 @@
int main()
{
int pipefd[2];
- pipefd[0] = 42;
- pipefd[1] = 13;
+ pipefd[0] = 0;
+ pipefd[1] = 0;
pipe (pipefd);
- //staptest// pipe (\[42, 13\]) = 0
+ //staptest// pipe (\[0, 0\]) = 0
#ifdef O_CLOEXEC
pipe2 (pipefd, O_CLOEXEC);