Home | History | Annotate | Line # | Download | only in time
t_strptime.c revision 1.3
      1  1.3  ginsbach /* $NetBSD: t_strptime.c,v 1.3 2015/04/21 17:39:50 ginsbach Exp $ */
      2  1.1  pgoyette 
      3  1.1  pgoyette /*-
      4  1.1  pgoyette  * Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
      5  1.1  pgoyette  * All rights reserved.
      6  1.1  pgoyette  *
      7  1.1  pgoyette  * This code is derived from software contributed to The NetBSD Foundation
      8  1.1  pgoyette  * by David Laight.
      9  1.1  pgoyette  *
     10  1.1  pgoyette  * Redistribution and use in source and binary forms, with or without
     11  1.1  pgoyette  * modification, are permitted provided that the following conditions
     12  1.1  pgoyette  * are met:
     13  1.1  pgoyette  * 1. Redistributions of source code must retain the above copyright
     14  1.1  pgoyette  *    notice, this list of conditions and the following disclaimer.
     15  1.1  pgoyette  * 2. Redistributions in binary form must reproduce the above copyright
     16  1.1  pgoyette  *    notice, this list of conditions and the following disclaimer in the
     17  1.1  pgoyette  *    documentation and/or other materials provided with the distribution.
     18  1.1  pgoyette  *
     19  1.1  pgoyette  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     20  1.1  pgoyette  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     21  1.1  pgoyette  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     22  1.1  pgoyette  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     23  1.1  pgoyette  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     24  1.1  pgoyette  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     25  1.1  pgoyette  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     26  1.1  pgoyette  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     27  1.1  pgoyette  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     28  1.1  pgoyette  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     29  1.1  pgoyette  * POSSIBILITY OF SUCH DAMAGE.
     30  1.1  pgoyette  */
     31  1.1  pgoyette 
     32  1.1  pgoyette #include <sys/cdefs.h>
     33  1.1  pgoyette __COPYRIGHT("@(#) Copyright (c) 2008\
     34  1.1  pgoyette  The NetBSD Foundation, inc. All rights reserved.");
     35  1.3  ginsbach __RCSID("$NetBSD: t_strptime.c,v 1.3 2015/04/21 17:39:50 ginsbach Exp $");
     36  1.1  pgoyette 
     37  1.1  pgoyette #include <time.h>
     38  1.1  pgoyette 
     39  1.1  pgoyette #include <atf-c.h>
     40  1.1  pgoyette 
     41  1.1  pgoyette static void
     42  1.1  pgoyette h_pass(const char *buf, const char *fmt, int len,
     43  1.1  pgoyette     int tm_sec, int tm_min, int tm_hour, int tm_mday,
     44  1.1  pgoyette     int tm_mon, int tm_year, int tm_wday, int tm_yday)
     45  1.1  pgoyette {
     46  1.1  pgoyette 	struct tm tm = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, NULL };
     47  1.1  pgoyette 	const char *ret, *exp;
     48  1.1  pgoyette 
     49  1.1  pgoyette 	exp = buf + len;
     50  1.1  pgoyette 	ret = strptime(buf, fmt, &tm);
     51  1.1  pgoyette 
     52  1.1  pgoyette 	ATF_REQUIRE_MSG(ret == exp,
     53  1.1  pgoyette 	    "strptime(\"%s\", \"%s\", tm): incorrect return code: "
     54  1.1  pgoyette 	    "expected: %p, got: %p", buf, fmt, exp, ret);
     55  1.1  pgoyette 
     56  1.1  pgoyette #define H_REQUIRE_FIELD(field)						\
     57  1.1  pgoyette 		ATF_REQUIRE_MSG(tm.field == field,			\
     58  1.1  pgoyette 		    "strptime(\"%s\", \"%s\", tm): incorrect %s: "	\
     59  1.1  pgoyette 		    "expected: %d, but got: %d", buf, fmt,		\
     60  1.1  pgoyette 		    ___STRING(field), field, tm.field)
     61  1.1  pgoyette 
     62  1.1  pgoyette 	H_REQUIRE_FIELD(tm_sec);
     63  1.1  pgoyette 	H_REQUIRE_FIELD(tm_min);
     64  1.1  pgoyette 	H_REQUIRE_FIELD(tm_hour);
     65  1.1  pgoyette 	H_REQUIRE_FIELD(tm_mday);
     66  1.1  pgoyette 	H_REQUIRE_FIELD(tm_mon);
     67  1.1  pgoyette 	H_REQUIRE_FIELD(tm_year);
     68  1.1  pgoyette 	H_REQUIRE_FIELD(tm_wday);
     69  1.1  pgoyette 	H_REQUIRE_FIELD(tm_yday);
     70  1.1  pgoyette 
     71  1.1  pgoyette #undef H_REQUIRE_FIELD
     72  1.1  pgoyette }
     73  1.1  pgoyette 
     74  1.1  pgoyette static void
     75  1.1  pgoyette h_fail(const char *buf, const char *fmt)
     76  1.1  pgoyette {
     77  1.1  pgoyette 	struct tm tm = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, NULL };
     78  1.1  pgoyette 
     79  1.1  pgoyette 	ATF_REQUIRE_MSG(strptime(buf, fmt, &tm) == NULL, "strptime(\"%s\", "
     80  1.1  pgoyette 	    "\"%s\", &tm) should fail, but it didn't", buf, fmt);
     81  1.1  pgoyette }
     82  1.1  pgoyette 
     83  1.1  pgoyette ATF_TC(common);
     84  1.1  pgoyette 
     85  1.1  pgoyette ATF_TC_HEAD(common, tc)
     86  1.1  pgoyette {
     87  1.1  pgoyette 
     88  1.1  pgoyette 	atf_tc_set_md_var(tc, "descr", "Checks strptime(3): various checks");
     89  1.1  pgoyette }
     90  1.1  pgoyette 
     91  1.1  pgoyette ATF_TC_BODY(common, tc)
     92  1.1  pgoyette {
     93  1.1  pgoyette 
     94  1.1  pgoyette 	h_pass("Tue Jan 20 23:27:46 1998", "%a %b %d %T %Y",
     95  1.1  pgoyette 		24, 46, 27, 23, 20, 0, 98, 2, -1);
     96  1.1  pgoyette 	h_pass("Tue Jan 20 23:27:46 1998", "%a %b %d %H:%M:%S %Y",
     97  1.1  pgoyette 		24, 46, 27, 23, 20, 0, 98, 2, -1);
     98  1.1  pgoyette 	h_pass("Tue Jan 20 23:27:46 1998", "%c",
     99  1.1  pgoyette 		24, 46, 27, 23, 20, 0, 98, 2, -1);
    100  1.1  pgoyette 	h_pass("Fri Mar  4 20:05:34 2005", "%a %b %e %H:%M:%S %Y",
    101  1.1  pgoyette 		24, 34, 5, 20, 4, 2, 105, 5, -1);
    102  1.1  pgoyette 	h_pass("5\t3  4 8pm:05:34 2005", "%w%n%m%t%d%n%k%p:%M:%S %Y",
    103  1.1  pgoyette 		21, 34, 5, 20, 4, 2, 105, 5, -1);
    104  1.1  pgoyette 	h_pass("Fri Mar  4 20:05:34 2005", "%c",
    105  1.1  pgoyette 		24, 34, 5, 20, 4, 2, 105, 5, -1);
    106  1.1  pgoyette 
    107  1.1  pgoyette 	h_pass("x20y", "x%Cy", 4, -1, -1, -1, -1, -1, 100, -1, -1);
    108  1.1  pgoyette 	h_pass("x84y", "x%yy", 4, -1, -1, -1, -1, -1, 84, -1, -1);
    109  1.1  pgoyette 	h_pass("x2084y", "x%C%yy", 6, -1, -1, -1, -1, -1, 184, -1, -1);
    110  1.1  pgoyette 	h_pass("x8420y", "x%y%Cy", 6, -1, -1, -1, -1, -1, 184, -1, -1);
    111  1.1  pgoyette 	h_pass("%20845", "%%%C%y5", 6, -1, -1, -1, -1, -1, 184, -1, -1);
    112  1.1  pgoyette 	h_fail("%", "%E%");
    113  1.1  pgoyette 
    114  1.1  pgoyette 	h_pass("1980", "%Y", 4, -1, -1, -1, -1, -1, 80, -1, -1);
    115  1.1  pgoyette 	h_pass("1980", "%EY", 4, -1, -1, -1, -1, -1, 80, -1, -1);
    116  1.1  pgoyette }
    117  1.1  pgoyette 
    118  1.1  pgoyette ATF_TC(day);
    119  1.1  pgoyette 
    120  1.1  pgoyette ATF_TC_HEAD(day, tc)
    121  1.1  pgoyette {
    122  1.1  pgoyette 
    123  1.2  ginsbach 	atf_tc_set_md_var(tc, "descr",
    124  1.2  ginsbach 			  "Checks strptime(3) day name conversions [aA]");
    125  1.1  pgoyette }
    126  1.1  pgoyette 
    127  1.1  pgoyette ATF_TC_BODY(day, tc)
    128  1.1  pgoyette {
    129  1.1  pgoyette 
    130  1.1  pgoyette 	h_pass("Sun", "%a", 3, -1, -1, -1, -1, -1, -1, 0, -1);
    131  1.1  pgoyette 	h_pass("Sunday", "%a", 6, -1, -1, -1, -1, -1, -1, 0, -1);
    132  1.1  pgoyette 	h_pass("Mon", "%a", 3, -1, -1, -1, -1, -1, -1, 1, -1);
    133  1.1  pgoyette 	h_pass("Monday", "%a", 6, -1, -1, -1, -1, -1, -1, 1, -1);
    134  1.1  pgoyette 	h_pass("Tue", "%a", 3, -1, -1, -1, -1, -1, -1, 2, -1);
    135  1.1  pgoyette 	h_pass("Tuesday", "%a", 7, -1, -1, -1, -1, -1, -1, 2, -1);
    136  1.1  pgoyette 	h_pass("Wed", "%a", 3, -1, -1, -1, -1, -1, -1, 3, -1);
    137  1.1  pgoyette 	h_pass("Wednesday", "%a", 9, -1, -1, -1, -1, -1, -1, 3, -1);
    138  1.1  pgoyette 	h_pass("Thu", "%a", 3, -1, -1, -1, -1, -1, -1, 4, -1);
    139  1.1  pgoyette 	h_pass("Thursday", "%a", 8, -1, -1, -1, -1, -1, -1, 4, -1);
    140  1.1  pgoyette 	h_pass("Fri", "%a", 3, -1, -1, -1, -1, -1, -1, 5, -1);
    141  1.1  pgoyette 	h_pass("Friday", "%a", 6, -1, -1, -1, -1, -1, -1, 5, -1);
    142  1.1  pgoyette 	h_pass("Sat", "%a", 3, -1, -1, -1, -1, -1, -1, 6, -1);
    143  1.1  pgoyette 	h_pass("Saturday", "%a", 8, -1, -1, -1, -1, -1, -1, 6, -1);
    144  1.1  pgoyette 	h_pass("Saturn", "%a", 3, -1, -1, -1, -1, -1, -1, 6, -1);
    145  1.1  pgoyette 	h_fail("Moon", "%a");
    146  1.1  pgoyette 	h_pass("Sun", "%A", 3, -1, -1, -1, -1, -1, -1, 0, -1);
    147  1.1  pgoyette 	h_pass("Sunday", "%A", 6, -1, -1, -1, -1, -1, -1, 0, -1);
    148  1.1  pgoyette 	h_pass("Mon", "%A", 3, -1, -1, -1, -1, -1, -1, 1, -1);
    149  1.1  pgoyette 	h_pass("Monday", "%A", 6, -1, -1, -1, -1, -1, -1, 1, -1);
    150  1.1  pgoyette 	h_pass("Tue", "%A", 3, -1, -1, -1, -1, -1, -1, 2, -1);
    151  1.1  pgoyette 	h_pass("Tuesday", "%A", 7, -1, -1, -1, -1, -1, -1, 2, -1);
    152  1.1  pgoyette 	h_pass("Wed", "%A", 3, -1, -1, -1, -1, -1, -1, 3, -1);
    153  1.1  pgoyette 	h_pass("Wednesday", "%A", 9, -1, -1, -1, -1, -1, -1, 3, -1);
    154  1.1  pgoyette 	h_pass("Thu", "%A", 3, -1, -1, -1, -1, -1, -1, 4, -1);
    155  1.1  pgoyette 	h_pass("Thursday", "%A", 8, -1, -1, -1, -1, -1, -1, 4, -1);
    156  1.1  pgoyette 	h_pass("Fri", "%A", 3, -1, -1, -1, -1, -1, -1, 5, -1);
    157  1.1  pgoyette 	h_pass("Friday", "%A", 6, -1, -1, -1, -1, -1, -1, 5, -1);
    158  1.1  pgoyette 	h_pass("Sat", "%A", 3, -1, -1, -1, -1, -1, -1, 6, -1);
    159  1.1  pgoyette 	h_pass("Saturday", "%A", 8, -1, -1, -1, -1, -1, -1, 6, -1);
    160  1.1  pgoyette 	h_pass("Saturn", "%A", 3, -1, -1, -1, -1, -1, -1, 6, -1);
    161  1.1  pgoyette 	h_fail("Moon", "%A");
    162  1.1  pgoyette 
    163  1.1  pgoyette 	h_pass("mon", "%a", 3, -1, -1, -1, -1, -1, -1, 1, -1);
    164  1.1  pgoyette 	h_pass("tueSDay", "%A", 7, -1, -1, -1, -1, -1, -1, 2, -1);
    165  1.1  pgoyette 	h_pass("sunday", "%A", 6, -1, -1, -1, -1, -1, -1, 0, -1);
    166  1.1  pgoyette 	h_fail("sunday", "%EA");
    167  1.1  pgoyette 	h_pass("SaturDay", "%A", 8, -1, -1, -1, -1, -1, -1, 6, -1);
    168  1.1  pgoyette 	h_fail("SaturDay", "%OA");
    169  1.1  pgoyette }
    170  1.1  pgoyette 
    171  1.1  pgoyette ATF_TC(month);
    172  1.1  pgoyette 
    173  1.1  pgoyette ATF_TC_HEAD(month, tc)
    174  1.1  pgoyette {
    175  1.1  pgoyette 
    176  1.2  ginsbach 	atf_tc_set_md_var(tc, "descr",
    177  1.2  ginsbach 			  "Checks strptime(3) month name conversions [bB]");
    178  1.1  pgoyette }
    179  1.1  pgoyette 
    180  1.1  pgoyette ATF_TC_BODY(month, tc)
    181  1.1  pgoyette {
    182  1.1  pgoyette 
    183  1.1  pgoyette 	h_pass("Jan", "%b", 3, -1, -1, -1, -1, 0, -1, -1, -1);
    184  1.1  pgoyette 	h_pass("January", "%b", 7, -1, -1, -1, -1, 0, -1, -1, -1);
    185  1.1  pgoyette 	h_pass("Feb", "%b", 3, -1, -1, -1, -1, 1, -1, -1, -1);
    186  1.1  pgoyette 	h_pass("February", "%b", 8, -1, -1, -1, -1, 1, -1, -1, -1);
    187  1.1  pgoyette 	h_pass("Mar", "%b", 3, -1, -1, -1, -1, 2, -1, -1, -1);
    188  1.1  pgoyette 	h_pass("March", "%b", 5, -1, -1, -1, -1, 2, -1, -1, -1);
    189  1.1  pgoyette 	h_pass("Apr", "%b", 3, -1, -1, -1, -1, 3, -1, -1, -1);
    190  1.1  pgoyette 	h_pass("April", "%b", 5, -1, -1, -1, -1, 3, -1, -1, -1);
    191  1.1  pgoyette 	h_pass("May", "%b", 3, -1, -1, -1, -1, 4, -1, -1, -1);
    192  1.1  pgoyette 	h_pass("Jun", "%b", 3, -1, -1, -1, -1, 5, -1, -1, -1);
    193  1.1  pgoyette 	h_pass("June", "%b", 4, -1, -1, -1, -1, 5, -1, -1, -1);
    194  1.1  pgoyette 	h_pass("Jul", "%b", 3, -1, -1, -1, -1, 6, -1, -1, -1);
    195  1.1  pgoyette 	h_pass("July", "%b", 4, -1, -1, -1, -1, 6, -1, -1, -1);
    196  1.1  pgoyette 	h_pass("Aug", "%b", 3, -1, -1, -1, -1, 7, -1, -1, -1);
    197  1.1  pgoyette 	h_pass("August", "%b", 6, -1, -1, -1, -1, 7, -1, -1, -1);
    198  1.1  pgoyette 	h_pass("Sep", "%b", 3, -1, -1, -1, -1, 8, -1, -1, -1);
    199  1.1  pgoyette 	h_pass("September", "%b", 9, -1, -1, -1, -1, 8, -1, -1, -1);
    200  1.1  pgoyette 	h_pass("Oct", "%b", 3, -1, -1, -1, -1, 9, -1, -1, -1);
    201  1.1  pgoyette 	h_pass("October", "%b", 7, -1, -1, -1, -1, 9, -1, -1, -1);
    202  1.1  pgoyette 	h_pass("Nov", "%b", 3, -1, -1, -1, -1, 10, -1, -1, -1);
    203  1.1  pgoyette 	h_pass("November", "%b", 8, -1, -1, -1, -1, 10, -1, -1, -1);
    204  1.1  pgoyette 	h_pass("Dec", "%b", 3, -1, -1, -1, -1, 11, -1, -1, -1);
    205  1.1  pgoyette 	h_pass("December", "%b", 8, -1, -1, -1, -1, 11, -1, -1, -1);
    206  1.1  pgoyette 	h_pass("Mayor", "%b", 3, -1, -1, -1, -1, 4, -1, -1, -1);
    207  1.1  pgoyette 	h_pass("Mars", "%b", 3, -1, -1, -1, -1, 2, -1, -1, -1);
    208  1.1  pgoyette 	h_fail("Rover", "%b");
    209  1.1  pgoyette 	h_pass("Jan", "%B", 3, -1, -1, -1, -1, 0, -1, -1, -1);
    210  1.1  pgoyette 	h_pass("January", "%B", 7, -1, -1, -1, -1, 0, -1, -1, -1);
    211  1.1  pgoyette 	h_pass("Feb", "%B", 3, -1, -1, -1, -1, 1, -1, -1, -1);
    212  1.1  pgoyette 	h_pass("February", "%B", 8, -1, -1, -1, -1, 1, -1, -1, -1);
    213  1.1  pgoyette 	h_pass("Mar", "%B", 3, -1, -1, -1, -1, 2, -1, -1, -1);
    214  1.1  pgoyette 	h_pass("March", "%B", 5, -1, -1, -1, -1, 2, -1, -1, -1);
    215  1.1  pgoyette 	h_pass("Apr", "%B", 3, -1, -1, -1, -1, 3, -1, -1, -1);
    216  1.1  pgoyette 	h_pass("April", "%B", 5, -1, -1, -1, -1, 3, -1, -1, -1);
    217  1.1  pgoyette 	h_pass("May", "%B", 3, -1, -1, -1, -1, 4, -1, -1, -1);
    218  1.1  pgoyette 	h_pass("Jun", "%B", 3, -1, -1, -1, -1, 5, -1, -1, -1);
    219  1.1  pgoyette 	h_pass("June", "%B", 4, -1, -1, -1, -1, 5, -1, -1, -1);
    220  1.1  pgoyette 	h_pass("Jul", "%B", 3, -1, -1, -1, -1, 6, -1, -1, -1);
    221  1.1  pgoyette 	h_pass("July", "%B", 4, -1, -1, -1, -1, 6, -1, -1, -1);
    222  1.1  pgoyette 	h_pass("Aug", "%B", 3, -1, -1, -1, -1, 7, -1, -1, -1);
    223  1.1  pgoyette 	h_pass("August", "%B", 6, -1, -1, -1, -1, 7, -1, -1, -1);
    224  1.1  pgoyette 	h_pass("Sep", "%B", 3, -1, -1, -1, -1, 8, -1, -1, -1);
    225  1.1  pgoyette 	h_pass("September", "%B", 9, -1, -1, -1, -1, 8, -1, -1, -1);
    226  1.1  pgoyette 	h_pass("Oct", "%B", 3, -1, -1, -1, -1, 9, -1, -1, -1);
    227  1.1  pgoyette 	h_pass("October", "%B", 7, -1, -1, -1, -1, 9, -1, -1, -1);
    228  1.1  pgoyette 	h_pass("Nov", "%B", 3, -1, -1, -1, -1, 10, -1, -1, -1);
    229  1.1  pgoyette 	h_pass("November", "%B", 8, -1, -1, -1, -1, 10, -1, -1, -1);
    230  1.1  pgoyette 	h_pass("Dec", "%B", 3, -1, -1, -1, -1, 11, -1, -1, -1);
    231  1.1  pgoyette 	h_pass("December", "%B", 8, -1, -1, -1, -1, 11, -1, -1, -1);
    232  1.1  pgoyette 	h_pass("Mayor", "%B", 3, -1, -1, -1, -1, 4, -1, -1, -1);
    233  1.1  pgoyette 	h_pass("Mars", "%B", 3, -1, -1, -1, -1, 2, -1, -1, -1);
    234  1.1  pgoyette 	h_fail("Rover", "%B");
    235  1.1  pgoyette 
    236  1.1  pgoyette 	h_pass("september", "%b", 9, -1, -1, -1, -1, 8, -1, -1, -1);
    237  1.1  pgoyette 	h_pass("septembe", "%B", 3, -1, -1, -1, -1, 8, -1, -1, -1);
    238  1.1  pgoyette }
    239  1.1  pgoyette 
    240  1.3  ginsbach ATF_TC(seconds);
    241  1.3  ginsbach 
    242  1.3  ginsbach ATF_TC_HEAD(seconds, tc)
    243  1.3  ginsbach {
    244  1.3  ginsbach 
    245  1.3  ginsbach 	atf_tc_set_md_var(tc, "descr",
    246  1.3  ginsbach 			  "Checks strptime(3) seconds conversions [S]");
    247  1.3  ginsbach }
    248  1.3  ginsbach 
    249  1.3  ginsbach ATF_TC_BODY(seconds, tc)
    250  1.3  ginsbach {
    251  1.3  ginsbach 
    252  1.3  ginsbach 	h_pass("0", "%S", 1, 0, -1, -1, -1, -1, -1, -1, -1);
    253  1.3  ginsbach 	h_pass("59", "%S", 2, 59, -1, -1, -1, -1, -1, -1, -1);
    254  1.3  ginsbach 	h_pass("60", "%S", 2, 60, -1, -1, -1, -1, -1, -1, -1);
    255  1.3  ginsbach 	h_pass("61", "%S", 2, 61, -1, -1, -1, -1, -1, -1, -1);
    256  1.3  ginsbach 	h_fail("62", "%S");
    257  1.3  ginsbach }
    258  1.3  ginsbach 
    259  1.1  pgoyette ATF_TP_ADD_TCS(tp)
    260  1.1  pgoyette {
    261  1.1  pgoyette 
    262  1.1  pgoyette 	ATF_TP_ADD_TC(tp, common);
    263  1.1  pgoyette 	ATF_TP_ADD_TC(tp, day);
    264  1.1  pgoyette 	ATF_TP_ADD_TC(tp, month);
    265  1.3  ginsbach 	ATF_TP_ADD_TC(tp, seconds);
    266  1.1  pgoyette 
    267  1.1  pgoyette 	return atf_no_error();
    268  1.1  pgoyette }
    269