summary refs log tree commit diff
path: root/rt/tst-aio7.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-03-06 19:16:53 +0000
committerRoland McGrath <roland@gnu.org>2003-03-06 19:16:53 +0000
commitb0898d85cd660b89d97ba6625e9dcef27007ac44 (patch)
tree2b678c0b6b70ce2d779e78bd76e5f8648c4ff450 /rt/tst-aio7.c
parent49400d0eab567bb18905869ae7d36915376dc936 (diff)
downloadglibc-b0898d85cd660b89d97ba6625e9dcef27007ac44.tar.gz
glibc-b0898d85cd660b89d97ba6625e9dcef27007ac44.tar.xz
glibc-b0898d85cd660b89d97ba6625e9dcef27007ac44.zip
2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
	* rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
Diffstat (limited to 'rt/tst-aio7.c')
-rw-r--r--rt/tst-aio7.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/rt/tst-aio7.c b/rt/tst-aio7.c
index b4903c7892..b2ba81312a 100644
--- a/rt/tst-aio7.c
+++ b/rt/tst-aio7.c
@@ -180,6 +180,14 @@ do_test (void)
 	puts ("aio_suspend([done,blocked],2,3) suspended thread");
 	++result;
       }
+
+    /* Cancel i/o on cb1. */
+    r = aio_cancel (piped[0], &cb1);
+    if (r != AIO_CANCELED)
+      {
+	puts ("aio_cancel did not return AIO_CANCELED");
+	++result;
+      }
   }
 
   return result;