Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/librefuse Rename test functions
details: https://anonhg.NetBSD.org/src/rev/b3e7960962bf
branches: trunk
changeset: 348904:b3e7960962bf
user: pho <pho%NetBSD.org@localhost>
date: Tue Nov 15 00:37:18 2016 +0000
description:
Rename test functions
diffstat:
tests/lib/librefuse/t_refuse_opt.c | 44 +++++++++++++++++++-------------------
1 files changed, 22 insertions(+), 22 deletions(-)
diffs (121 lines):
diff -r f62495738588 -r b3e7960962bf tests/lib/librefuse/t_refuse_opt.c
--- a/tests/lib/librefuse/t_refuse_opt.c Tue Nov 15 00:34:19 2016 +0000
+++ b/tests/lib/librefuse/t_refuse_opt.c Tue Nov 15 00:37:18 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_refuse_opt.c,v 1.3 2016/11/15 00:32:42 pho Exp $ */
+/* $NetBSD: t_refuse_opt.c,v 1.4 2016/11/15 00:37:18 pho Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -26,7 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_refuse_opt.c,v 1.3 2016/11/15 00:32:42 pho Exp $");
+__RCSID("$NetBSD: t_refuse_opt.c,v 1.4 2016/11/15 00:37:18 pho Exp $");
#include <atf-c.h>
@@ -34,13 +34,13 @@
#include "../../h_macros.h"
-ATF_TC(efuse_opt_add_arg);
-ATF_TC_HEAD(efuse_opt_add_arg, tc)
+ATF_TC(t_fuse_opt_add_arg);
+ATF_TC_HEAD(t_fuse_opt_add_arg, tc)
{
atf_tc_set_md_var(tc, "descr", "Check that fuse_opt_add_arg(3) works");
}
-ATF_TC_BODY(efuse_opt_add_arg, tc)
+ATF_TC_BODY(t_fuse_opt_add_arg, tc)
{
struct fuse_args args = FUSE_ARGS_INIT(0, NULL);
@@ -53,13 +53,13 @@
ATF_CHECK(args.allocated != 0);
}
-ATF_TC(efuse_opt_insert_arg);
-ATF_TC_HEAD(efuse_opt_insert_arg, tc)
+ATF_TC(t_fuse_opt_insert_arg);
+ATF_TC_HEAD(t_fuse_opt_insert_arg, tc)
{
atf_tc_set_md_var(tc, "descr", "Check that fuse_opt_insert_arg(3) works");
}
-ATF_TC_BODY(efuse_opt_insert_arg, tc)
+ATF_TC_BODY(t_fuse_opt_insert_arg, tc)
{
struct fuse_args args = FUSE_ARGS_INIT(0, NULL);
@@ -72,13 +72,13 @@
ATF_CHECK(args.allocated != 0);
}
-ATF_TC(efuse_opt_add_opt);
-ATF_TC_HEAD(efuse_opt_add_opt, tc)
+ATF_TC(t_fuse_opt_add_opt);
+ATF_TC_HEAD(t_fuse_opt_add_opt, tc)
{
atf_tc_set_md_var(tc, "descr", "Check that fuse_opt_add_opt(3) works");
}
-ATF_TC_BODY(efuse_opt_add_opt, tc)
+ATF_TC_BODY(t_fuse_opt_add_opt, tc)
{
char* opt = NULL;
@@ -89,13 +89,13 @@
ATF_CHECK_STREQ(opt, "fo\\o,ba,r");
}
-ATF_TC(efuse_opt_add_opt_escaped);
-ATF_TC_HEAD(efuse_opt_add_opt_escaped, tc)
+ATF_TC(t_fuse_opt_add_opt_escaped);
+ATF_TC_HEAD(t_fuse_opt_add_opt_escaped, tc)
{
atf_tc_set_md_var(tc, "descr", "Check that fuse_opt_add_opt_escaped(3) works");
}
-ATF_TC_BODY(efuse_opt_add_opt_escaped, tc)
+ATF_TC_BODY(t_fuse_opt_add_opt_escaped, tc)
{
char* opt = NULL;
@@ -106,14 +106,14 @@
ATF_CHECK_STREQ(opt, "fo\\\\o,ba\\,r");
}
-ATF_TC(efuse_opt_match);
-ATF_TC_HEAD(efuse_opt_match, tc)
+ATF_TC(t_fuse_opt_match);
+ATF_TC_HEAD(t_fuse_opt_match, tc)
{
atf_tc_set_md_var(tc, "descr", "Check that fuse_opt_match(3) works"
" for every form of templates");
}
-ATF_TC_BODY(efuse_opt_match, tc)
+ATF_TC_BODY(t_fuse_opt_match, tc)
{
struct fuse_opt o1[] = { FUSE_OPT_KEY("-x" , 0), FUSE_OPT_END };
struct fuse_opt o2[] = { FUSE_OPT_KEY("foo" , 0), FUSE_OPT_END };
@@ -147,11 +147,11 @@
ATF_TP_ADD_TCS(tp)
{
- ATF_TP_ADD_TC(tp, efuse_opt_add_arg);
- ATF_TP_ADD_TC(tp, efuse_opt_insert_arg);
- ATF_TP_ADD_TC(tp, efuse_opt_add_opt);
- ATF_TP_ADD_TC(tp, efuse_opt_add_opt_escaped);
- ATF_TP_ADD_TC(tp, efuse_opt_match);
+ ATF_TP_ADD_TC(tp, t_fuse_opt_add_arg);
+ ATF_TP_ADD_TC(tp, t_fuse_opt_insert_arg);
+ ATF_TP_ADD_TC(tp, t_fuse_opt_add_opt);
+ ATF_TP_ADD_TC(tp, t_fuse_opt_add_opt_escaped);
+ ATF_TP_ADD_TC(tp, t_fuse_opt_match);
return atf_no_error();
}
Home |
Main Index |
Thread Index |
Old Index