Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/syscall pollts(2) is supposed to return -1 in particul...
details: https://anonhg.NetBSD.org/src/rev/fb6857bdd3f5
branches: trunk
changeset: 765658:fb6857bdd3f5
user: tron <tron%NetBSD.org@localhost>
date: Wed Jun 01 19:32:50 2011 +0000
description:
pollts(2) is supposed to return -1 in particular and not a random
non-zero value in case of an error.
diffstat:
tests/syscall/t_pollts.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r c33ea1acbee2 -r fb6857bdd3f5 tests/syscall/t_pollts.c
--- a/tests/syscall/t_pollts.c Wed Jun 01 16:00:10 2011 +0000
+++ b/tests/syscall/t_pollts.c Wed Jun 01 19:32:50 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_pollts.c,v 1.3 2011/06/01 03:39:45 jruoho Exp $ */
+/* $NetBSD: t_pollts.c,v 1.4 2011/06/01 19:32:50 tron Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -131,13 +131,13 @@
timeout.tv_nsec = 0;
errno = 0;
- ATF_REQUIRE_ERRNO(EFAULT, pollts((void *)-1, 1, &timeout, NULL) != 0);
+ ATF_REQUIRE_ERRNO(EFAULT, pollts((void *)-1, 1, &timeout, NULL) == -1);
timeout.tv_sec = -1;
timeout.tv_nsec = -1;
errno = 0;
- ATF_REQUIRE_ERRNO(EINVAL, pollts(&pfd, 1, &timeout, NULL) != 0);
+ ATF_REQUIRE_ERRNO(EINVAL, pollts(&pfd, 1, &timeout, NULL) == -1);
}
ATF_TC(pollts_sigmask);
Home |
Main Index |
Thread Index |
Old Index