Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests Rename some tests. No functional change.
details: https://anonhg.NetBSD.org/src/rev/f3ba43e732f1
branches: trunk
changeset: 763850:f3ba43e732f1
user: jruoho <jruoho%NetBSD.org@localhost>
date: Tue Apr 05 14:04:42 2011 +0000
description:
Rename some tests. No functional change.
diffstat:
tests/lib/libc/gen/t_raise.c | 20 ++++++++++----------
tests/syscall/t_fsync.c | 20 ++++++++++----------
2 files changed, 20 insertions(+), 20 deletions(-)
diffs (126 lines):
diff -r 4795f6943be8 -r f3ba43e732f1 tests/lib/libc/gen/t_raise.c
--- a/tests/lib/libc/gen/t_raise.c Tue Apr 05 13:43:33 2011 +0000
+++ b/tests/lib/libc/gen/t_raise.c Tue Apr 05 14:04:42 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_raise.c,v 1.2 2011/03/30 08:34:19 jruoho Exp $ */
+/* $NetBSD: t_raise.c,v 1.3 2011/04/05 14:04:42 jruoho Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_raise.c,v 1.2 2011/03/30 08:34:19 jruoho Exp $");
+__RCSID("$NetBSD: t_raise.c,v 1.3 2011/04/05 14:04:42 jruoho Exp $");
#include <atf-c.h>
@@ -56,13 +56,13 @@
}
}
-ATF_TC(raise_1);
-ATF_TC_HEAD(raise_1, tc)
+ATF_TC(raise_err);
+ATF_TC_HEAD(raise_err, tc)
{
atf_tc_set_md_var(tc, "descr", "Test raise(3) for invalid parameters");
}
-ATF_TC_BODY(raise_1, tc)
+ATF_TC_BODY(raise_err, tc)
{
int i = 0;
@@ -74,13 +74,13 @@
}
}
-ATF_TC(raise_2);
-ATF_TC_HEAD(raise_2, tc)
+ATF_TC(raise_sig);
+ATF_TC_HEAD(raise_sig, tc)
{
atf_tc_set_md_var(tc, "descr", "A basic test of raise(3)");
}
-ATF_TC_BODY(raise_2, tc)
+ATF_TC_BODY(raise_sig, tc)
{
struct timespec tv, tr;
struct sigaction sa;
@@ -111,8 +111,8 @@
ATF_TP_ADD_TCS(tp)
{
- ATF_TP_ADD_TC(tp, raise_1);
- ATF_TP_ADD_TC(tp, raise_2);
+ ATF_TP_ADD_TC(tp, raise_err);
+ ATF_TP_ADD_TC(tp, raise_sig);
return atf_no_error();
}
diff -r 4795f6943be8 -r f3ba43e732f1 tests/syscall/t_fsync.c
--- a/tests/syscall/t_fsync.c Tue Apr 05 13:43:33 2011 +0000
+++ b/tests/syscall/t_fsync.c Tue Apr 05 14:04:42 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_fsync.c,v 1.1 2011/03/30 09:43:21 jruoho Exp $ */
+/* $NetBSD: t_fsync.c,v 1.2 2011/04/05 14:04:42 jruoho Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_fsync.c,v 1.1 2011/03/30 09:43:21 jruoho Exp $");
+__RCSID("$NetBSD: t_fsync.c,v 1.2 2011/04/05 14:04:42 jruoho Exp $");
#include <errno.h>
#include <fcntl.h>
@@ -40,13 +40,13 @@
#include <atf-c.h>
-ATF_TC(fsync_1);
-ATF_TC_HEAD(fsync_1, tc)
+ATF_TC(fsync_err);
+ATF_TC_HEAD(fsync_err, tc)
{
atf_tc_set_md_var(tc, "descr", "Test error conditions of fsync(2)");
}
-ATF_TC_BODY(fsync_1, tc)
+ATF_TC_BODY(fsync_err, tc)
{
int i, fd[2];
@@ -83,13 +83,13 @@
ATF_REQUIRE(close(fd[1]) == 0);
}
-ATF_TC(fsync_2);
-ATF_TC_HEAD(fsync_2, tc)
+ATF_TC(fsync_sync);
+ATF_TC_HEAD(fsync_sync, tc)
{
atf_tc_set_md_var(tc, "descr", "A basic test of fsync(2)");
}
-ATF_TC_BODY(fsync_2, tc)
+ATF_TC_BODY(fsync_sync, tc)
{
char buf[128];
int fd, i;
@@ -112,8 +112,8 @@
ATF_TP_ADD_TCS(tp)
{
- ATF_TP_ADD_TC(tp, fsync_1);
- ATF_TP_ADD_TC(tp, fsync_2);
+ ATF_TP_ADD_TC(tp, fsync_err);
+ ATF_TP_ADD_TC(tp, fsync_sync);
return atf_no_error();
}
Home |
Main Index |
Thread Index |
Old Index