include $(top_srcdir)/Makefile.tool-tests.am
dist_noinst_SCRIPTS = filter_stderr filter_pts dump_stdout filter_sigwait \
- filter_scalar filter_realpathat filter_fstat
+ filter_scalar filter_realpathat filter_fstat filter_eventfd2
EXTRA_DIST = \
scalar.h \
eventfd1.vgtest \
eventfd1.stderr.exp eventfd1.stdout.exp \
eventfd2.vgtest \
- eventfd2.stderr.exp eventfd2.stdout.exp \
+ eventfd2.stderr.exp \
errno_aligned_allocs.vgtest \
errno_aligned_allocs.stderr.exp \
setproctitle.vgtest \
exit(1);
}
- fprintf(stdout, "wait completed on %d: count=%" PRIu64 "\n",
+ fprintf(stderr, "fd %d wait completed: count=%" PRIu64 "\n",
fd, cntr);
- fflush(stdout);
}
static void xsem_post(int fd, int count)
* not good for regresson tests
* (also xsem_wait above)
*/
- fprintf(stdout, "posting 1 on %d\n", fd1);
- fflush(stdout);
+ fprintf(stderr, "fd %d posting 1\n", fd1);
xsem_post(fd1, 1);
- fprintf(stdout, "waiting on %d\n", fd2);
- fflush(stdout);
+ fprintf(stderr, "fd %d waiting\n", fd2);
xsem_wait(fd2);
- fprintf(stdout, "posting 1 on %d\n", fd1);
- fflush(stdout);
+ fprintf(stderr, "fd %d posting 1\n", fd1);
xsem_post(fd1, 1);
- fprintf(stdout, "waiting on %d\n", fd2);
- fflush(stdout);
+ fprintf(stderr, "fd %d waiting\n", fd2);
xsem_wait(fd2);
- fprintf(stdout, "posting 5 on %d\n", fd1);
- fflush(stdout);
+ fprintf(stderr, "fd %d posting 5\n", fd1);
xsem_post(fd1, 5);
- fprintf(stdout, "waiting 5 times on %d\n", fd2);
- fflush(stdout);
+ fprintf(stderr, "fd %d waiting 5 times\n", fd2);
xsem_wait(fd2);
xsem_wait(fd2);
xsem_wait(fd2);
+fd 3 posting 1
+fd 3 posting 1
+fd 3 posting 5
+fd 3 wait completed: count=1
+fd 3 wait completed: count=1
+fd 3 wait completed: count=1
+fd 3 wait completed: count=1
+fd 3 wait completed: count=1
+fd 3 wait completed: count=1
+fd 3 wait completed: count=1
+fd 3 waiting
+fd 3 waiting
+fd 3 waiting 5 times
+fd 4 posting 1
+fd 4 posting 1
+fd 4 posting 5
+fd 4 wait completed: count=1
+fd 4 wait completed: count=1
+fd 4 wait completed: count=1
+fd 4 wait completed: count=1
+fd 4 wait completed: count=1
+fd 4 wait completed: count=1
+fd 4 wait completed: count=1
+fd 4 waiting
+fd 4 waiting
+fd 4 waiting 5 times
+++ /dev/null
-posting 1 on 3
-waiting on 4
-posting 1 on 4
-wait completed on 4: count=1
-waiting on 3
-posting 1 on 3
-waiting on 4
-wait completed on 3: count=1
-posting 1 on 4
-wait completed on 4: count=1
-waiting on 3
-wait completed on 3: count=1
-posting 5 on 3
-posting 5 on 4
-waiting 5 times on 4
-wait completed on 4: count=1
-waiting 5 times on 3
-wait completed on 4: count=1
-wait completed on 3: count=1
-wait completed on 4: count=1
-wait completed on 3: count=1
-wait completed on 4: count=1
-wait completed on 3: count=1
-wait completed on 4: count=1
-wait completed on 3: count=1
-wait completed on 3: count=1
prog: eventfd2
prereq: test -e ./eventfd2
vgopts: -q
+stderr_filter: filter_eventfd2
--- /dev/null
+#! /bin/sh
+
+../filter_stderr "$@" |
+
+sort
+
+exit 0