about summary refs log tree commit diff
path: root/rt/tst-aio7.c
diff options
context:
space:
mode:
Diffstat (limited to 'rt/tst-aio7.c')
-rw-r--r--rt/tst-aio7.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/rt/tst-aio7.c b/rt/tst-aio7.c
index 1b3bdeaadf..ecb45cb156 100644
--- a/rt/tst-aio7.c
+++ b/rt/tst-aio7.c
@@ -1,5 +1,5 @@
 /* Test for AIO POSIX compliance.
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 2001,02 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -52,6 +52,12 @@ do_test (void)
     /* Case one: invalid fds that match.  */
     if (aio_cancel (fd, &cb) != -1 || errno != EBADF)
       {
+	if (errno == ENOSYS)
+	  {
+	    puts ("no aio support in this configuration");
+	    return 0;
+	  }
+
 	puts ("aio_cancel( -1, {-1..} ) did not return -1 or errno != EBADF");
 	++result;
       }