Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/kernel Check that we did get EDEADLK error, and fail i...
details: https://anonhg.NetBSD.org/src/rev/a2174ca69a11
branches: trunk
changeset: 785019:a2174ca69a11
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Mon Feb 18 20:59:19 2013 +0000
description:
Check that we did get EDEADLK error, and fail immediately if we did not.
diffstat:
tests/kernel/t_lockf.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r be904a1c745d -r a2174ca69a11 tests/kernel/t_lockf.c
--- a/tests/kernel/t_lockf.c Mon Feb 18 20:30:16 2013 +0000
+++ b/tests/kernel/t_lockf.c Mon Feb 18 20:59:19 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_lockf.c,v 1.1 2012/11/07 14:00:38 pgoyette Exp $ */
+/* $NetBSD: t_lockf.c,v 1.2 2013/02/18 20:59:19 pgoyette Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -230,7 +230,7 @@
sleep(1); /* give child time to grab its lock then block */
error = dolock(fd, F_LOCK, 1, 1);
- ATF_CHECK_MSG(error != EDEADLK, "parent did not deadlock: %s",
+ ATF_REQUIRE_MSG(error == EDEADLK, "parent did not detect deadlock: %s",
strerror(errno));
ret = kill(pid, SIGKILL);
ATF_REQUIRE_MSG(ret != -1, "failed to kill child: %s", strerror(errno));
Home |
Main Index |
Thread Index |
Old Index