[BACK]Return to t_clock_subr.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / tests / dev / clock_subr

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/tests/dev/clock_subr/t_clock_subr.c between version 1.2 and 1.3

version 1.2, 2016/08/17 12:06:49 version 1.3, 2017/01/13 21:30:39
Line 40  __RCSID("$NetBSD$");
Line 40  __RCSID("$NetBSD$");
   
 #include <atf-c.h>  #include <atf-c.h>
   
 #include "../../h_macros.h"  #include "h_macros.h"
   
 #define FILL(ti,ye,mo,da,wd,ho,mi,se) \  #define FILL(ti,ye,mo,da,wd,ho,mi,se) \
 { .time = (ti), .clock = { .dt_year = (ye), .dt_mon = (mo), .dt_day = (da), \  { .time = (ti), .clock = { .dt_year = (ye), .dt_mon = (mo), .dt_day = (da), \
           .dt_wday = (wd), .dt_hour = (ho), .dt_min = (mi), .dt_sec = (se), } }            .dt_wday = (wd), .dt_hour = (ho), .dt_min = (mi), .dt_sec = (se), } }
   
 struct clock_test {  static struct clock_test {
         time_t time;          time_t time;
         struct clock_ymdhms clock;          struct clock_ymdhms clock;
 } static const clock_tests[] = {  } const clock_tests[] = {
         FILL(          0,1970, 1, 1,4, 0, 0, 0), // Thu Jan  1 00:00:00 UTC 1970          FILL(          0,1970, 1, 1,4, 0, 0, 0), // Thu Jan  1 00:00:00 UTC 1970
         FILL(   15638400,1970, 7, 1,3, 0, 0, 0), // Wed Jul  1 00:00:00 UTC 1970          FILL(   15638400,1970, 7, 1,3, 0, 0, 0), // Wed Jul  1 00:00:00 UTC 1970
         FILL(   31536000,1971, 1, 1,5, 0, 0, 0), // Fri Jan  1 00:00:00 UTC 1971          FILL(   31536000,1971, 1, 1,5, 0, 0, 0), // Fri Jan  1 00:00:00 UTC 1971

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

CVSweb <webmaster@jp.NetBSD.org>