Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/gen/execve make error more informative.



details:   https://anonhg.NetBSD.org/src/rev/2ad25c8e3552
branches:  trunk
changeset: 340546:2ad25c8e3552
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Sep 12 15:21:33 2015 +0000

description:
make error more informative.

diffstat:

 tests/lib/libc/gen/execve/t_execve.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r e389e4a2280e -r 2ad25c8e3552 tests/lib/libc/gen/execve/t_execve.c
--- a/tests/lib/libc/gen/execve/t_execve.c      Sat Sep 12 13:50:55 2015 +0000
+++ b/tests/lib/libc/gen/execve/t_execve.c      Sat Sep 12 15:21:33 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_execve.c,v 1.1 2014/04/29 06:29:02 uebayasi Exp $    */
+/*     $NetBSD: t_execve.c,v 1.2 2015/09/12 15:21:33 christos Exp $    */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -47,7 +47,8 @@
 
        err = execve(NULL, NULL, NULL);
        ATF_REQUIRE(err == -1);
-       ATF_REQUIRE(errno == EFAULT);
+       ATF_REQUIRE_MSG(errno == EFAULT,
+           "wrong error returned %d instead of %d", errno, EFAULT);
 }
 
 ATF_TP_ADD_TCS(tp)



Home | Main Index | Thread Index | Old Index