source: rtems/testsuites/psxtests/psxtime/psxtime.scn @ 4e7ca87

4.104.115
Last change on this file since 4e7ca87 was 4e7ca87, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 19, 2009 at 3:13:34 PM

2009-08-19 Joel Sherrill <joel.sherrill@…>

  • psxtime/main.c, psxtime/psxtime.scn, psxtime/test.c: Add test case for adjusting time (adjtime()) where the time is adjusted by enough microseconds that it crosses a second boundary.
  • Property mode set to 100644
File size: 10.6 KB
Line 
1*** POSIX TIME OF DAY TEST ***
2rtems_clock_set          12:45:00   01/01/1988
3adjtime - NULL delta - EINVAL
4adjtime - delta out of range - EINVAL
5adjtime - delta too small - do nothing
6adjtime - delta too small - do nothing, olddelta=NULL
7adjtime - delta of one second forward
8adjtime - delta of almost two seconds forward
9adjtime - delta of almost one second forward which bumps second
10rtems_clock_get_tod          12:45:04   01/01/1988
11rtems_clock_set          12:45:00   01/01/1988
12rtems_clock_get_tod          12:45:00   01/01/1988
13gettimeofday: Fri Jan  1 12:45:00 1988
14time:         Fri Jan  1 12:45:00 1988
15localtime:    Fri Jan  1 12:45:00 1988
16gmtime:       Fri Jan  1 12:45:00 1988
17
18rtems_clock_get_tod          12:45:05   01/01/1988
19gettimeofday: Fri Jan  1 12:45:05 1988
20time:         Fri Jan  1 12:45:05 1988
21localtime:    Fri Jan  1 12:45:05 1988
22gmtime:       Fri Jan  1 12:45:05 1988
23
24rtems_clock_get_tod          12:45:10   01/01/1988
25gettimeofday: Fri Jan  1 12:45:10 1988
26time:         Fri Jan  1 12:45:10 1988
27localtime:    Fri Jan  1 12:45:10 1988
28gmtime:       Fri Jan  1 12:45:10 1988
29
30rtems_clock_get_tod          12:45:15   01/01/1988
31gettimeofday: Fri Jan  1 12:45:15 1988
32time:         Fri Jan  1 12:45:15 1988
33localtime:    Fri Jan  1 12:45:15 1988
34gmtime:       Fri Jan  1 12:45:15 1988
35
36rtems_clock_get_tod          12:45:20   01/01/1988
37gettimeofday: Fri Jan  1 12:45:20 1988
38time:         Fri Jan  1 12:45:20 1988
39localtime:    Fri Jan  1 12:45:20 1988
40gmtime:       Fri Jan  1 12:45:20 1988
41
42rtems_clock_get_tod          12:45:25   01/01/1988
43gettimeofday: Fri Jan  1 12:45:25 1988
44time:         Fri Jan  1 12:45:25 1988
45localtime:    Fri Jan  1 12:45:25 1988
46gmtime:       Fri Jan  1 12:45:25 1988
47
48rtems_clock_set          09:00:00   12/31/1988
49rtems_clock_get_tod          09:00:00   12/31/1988
50gettimeofday: Sat Dec 31 09:00:00 1988
51time:         Sat Dec 31 09:00:00 1988
52localtime:    Sat Dec 31 09:00:00 1988
53gmtime:       Sat Dec 31 09:00:00 1988
54
55rtems_clock_get_tod          09:00:05   12/31/1988
56gettimeofday: Sat Dec 31 09:00:05 1988
57time:         Sat Dec 31 09:00:05 1988
58localtime:    Sat Dec 31 09:00:05 1988
59gmtime:       Sat Dec 31 09:00:05 1988
60
61rtems_clock_get_tod          09:00:10   12/31/1988
62gettimeofday: Sat Dec 31 09:00:10 1988
63time:         Sat Dec 31 09:00:10 1988
64localtime:    Sat Dec 31 09:00:10 1988
65gmtime:       Sat Dec 31 09:00:10 1988
66
67rtems_clock_get_tod          09:00:15   12/31/1988
68gettimeofday: Sat Dec 31 09:00:15 1988
69time:         Sat Dec 31 09:00:15 1988
70localtime:    Sat Dec 31 09:00:15 1988
71gmtime:       Sat Dec 31 09:00:15 1988
72
73rtems_clock_get_tod          09:00:20   12/31/1988
74gettimeofday: Sat Dec 31 09:00:20 1988
75time:         Sat Dec 31 09:00:20 1988
76localtime:    Sat Dec 31 09:00:20 1988
77gmtime:       Sat Dec 31 09:00:20 1988
78
79rtems_clock_get_tod          09:00:25   12/31/1988
80gettimeofday: Sat Dec 31 09:00:25 1988
81time:         Sat Dec 31 09:00:25 1988
82localtime:    Sat Dec 31 09:00:25 1988
83gmtime:       Sat Dec 31 09:00:25 1988
84
85rtems_clock_set          23:55:59   12/31/1999
86rtems_clock_get_tod          23:55:59   12/31/1999
87gettimeofday: Fri Dec 31 23:55:59 1999
88time:         Fri Dec 31 23:55:59 1999
89localtime:    Fri Dec 31 23:55:59 1999
90gmtime:       Fri Dec 31 23:55:59 1999
91
92rtems_clock_get_tod          23:56:04   12/31/1999
93gettimeofday: Fri Dec 31 23:56:04 1999
94time:         Fri Dec 31 23:56:04 1999
95localtime:    Fri Dec 31 23:56:04 1999
96gmtime:       Fri Dec 31 23:56:04 1999
97
98rtems_clock_get_tod          23:56:09   12/31/1999
99gettimeofday: Fri Dec 31 23:56:09 1999
100time:         Fri Dec 31 23:56:09 1999
101localtime:    Fri Dec 31 23:56:09 1999
102gmtime:       Fri Dec 31 23:56:09 1999
103
104rtems_clock_get_tod          23:56:14   12/31/1999
105gettimeofday: Fri Dec 31 23:56:14 1999
106time:         Fri Dec 31 23:56:14 1999
107localtime:    Fri Dec 31 23:56:14 1999
108gmtime:       Fri Dec 31 23:56:14 1999
109
110rtems_clock_get_tod          23:56:19   12/31/1999
111gettimeofday: Fri Dec 31 23:56:19 1999
112time:         Fri Dec 31 23:56:19 1999
113localtime:    Fri Dec 31 23:56:19 1999
114gmtime:       Fri Dec 31 23:56:19 1999
115
116rtems_clock_get_tod          23:56:24   12/31/1999
117gettimeofday: Fri Dec 31 23:56:24 1999
118time:         Fri Dec 31 23:56:24 1999
119localtime:    Fri Dec 31 23:56:24 1999
120gmtime:       Fri Dec 31 23:56:24 1999
121
122rtems_clock_set          00:01:30   06/30/1999
123rtems_clock_get_tod          00:01:30   06/30/1999
124gettimeofday: Wed Jun 30 00:01:30 1999
125time:         Wed Jun 30 00:01:30 1999
126localtime:    Wed Jun 30 00:01:30 1999
127gmtime:       Wed Jun 30 00:01:30 1999
128
129rtems_clock_get_tod          00:01:35   06/30/1999
130gettimeofday: Wed Jun 30 00:01:35 1999
131time:         Wed Jun 30 00:01:35 1999
132localtime:    Wed Jun 30 00:01:35 1999
133gmtime:       Wed Jun 30 00:01:35 1999
134
135rtems_clock_get_tod          00:01:40   06/30/1999
136gettimeofday: Wed Jun 30 00:01:40 1999
137time:         Wed Jun 30 00:01:40 1999
138localtime:    Wed Jun 30 00:01:40 1999
139gmtime:       Wed Jun 30 00:01:40 1999
140
141rtems_clock_get_tod          00:01:45   06/30/1999
142gettimeofday: Wed Jun 30 00:01:45 1999
143time:         Wed Jun 30 00:01:45 1999
144localtime:    Wed Jun 30 00:01:45 1999
145gmtime:       Wed Jun 30 00:01:45 1999
146
147rtems_clock_get_tod          00:01:50   06/30/1999
148gettimeofday: Wed Jun 30 00:01:50 1999
149time:         Wed Jun 30 00:01:50 1999
150localtime:    Wed Jun 30 00:01:50 1999
151gmtime:       Wed Jun 30 00:01:50 1999
152
153rtems_clock_get_tod          00:01:55   06/30/1999
154gettimeofday: Wed Jun 30 00:01:55 1999
155time:         Wed Jun 30 00:01:55 1999
156localtime:    Wed Jun 30 00:01:55 1999
157gmtime:       Wed Jun 30 00:01:55 1999
158
159rtems_clock_set          00:15:59   01/01/2000
160rtems_clock_get_tod          00:15:59   01/01/2000
161gettimeofday: Sat Jan  1 00:15:59 2000
162time:         Sat Jan  1 00:15:59 2000
163localtime:    Sat Jan  1 00:15:59 2000
164gmtime:       Sat Jan  1 00:15:59 2000
165
166rtems_clock_get_tod          00:16:04   01/01/2000
167gettimeofday: Sat Jan  1 00:16:04 2000
168time:         Sat Jan  1 00:16:04 2000
169localtime:    Sat Jan  1 00:16:04 2000
170gmtime:       Sat Jan  1 00:16:04 2000
171
172rtems_clock_get_tod          00:16:09   01/01/2000
173gettimeofday: Sat Jan  1 00:16:09 2000
174time:         Sat Jan  1 00:16:09 2000
175localtime:    Sat Jan  1 00:16:09 2000
176gmtime:       Sat Jan  1 00:16:09 2000
177
178rtems_clock_get_tod          00:16:14   01/01/2000
179gettimeofday: Sat Jan  1 00:16:14 2000
180time:         Sat Jan  1 00:16:14 2000
181localtime:    Sat Jan  1 00:16:14 2000
182gmtime:       Sat Jan  1 00:16:14 2000
183
184rtems_clock_get_tod          00:16:19   01/01/2000
185gettimeofday: Sat Jan  1 00:16:19 2000
186time:         Sat Jan  1 00:16:19 2000
187localtime:    Sat Jan  1 00:16:19 2000
188gmtime:       Sat Jan  1 00:16:19 2000
189
190rtems_clock_get_tod          00:16:24   01/01/2000
191gettimeofday: Sat Jan  1 00:16:24 2000
192time:         Sat Jan  1 00:16:24 2000
193localtime:    Sat Jan  1 00:16:24 2000
194gmtime:       Sat Jan  1 00:16:24 2000
195
196rtems_clock_set          05:10:59   02/02/2005
197rtems_clock_get_tod          05:10:59   02/02/2005
198gettimeofday: Wed Feb  2 05:10:59 2005
199time:         Wed Feb  2 05:10:59 2005
200localtime:    Wed Feb  2 05:10:59 2005
201gmtime:       Wed Feb  2 05:10:59 2005
202
203rtems_clock_get_tod          05:11:04   02/02/2005
204gettimeofday: Wed Feb  2 05:11:04 2005
205time:         Wed Feb  2 05:11:04 2005
206localtime:    Wed Feb  2 05:11:04 2005
207gmtime:       Wed Feb  2 05:11:04 2005
208
209rtems_clock_get_tod          05:11:09   02/02/2005
210gettimeofday: Wed Feb  2 05:11:09 2005
211time:         Wed Feb  2 05:11:09 2005
212localtime:    Wed Feb  2 05:11:09 2005
213gmtime:       Wed Feb  2 05:11:09 2005
214
215rtems_clock_get_tod          05:11:14   02/02/2005
216gettimeofday: Wed Feb  2 05:11:14 2005
217time:         Wed Feb  2 05:11:14 2005
218localtime:    Wed Feb  2 05:11:14 2005
219gmtime:       Wed Feb  2 05:11:14 2005
220
221rtems_clock_get_tod          05:11:19   02/02/2005
222gettimeofday: Wed Feb  2 05:11:19 2005
223time:         Wed Feb  2 05:11:19 2005
224localtime:    Wed Feb  2 05:11:19 2005
225gmtime:       Wed Feb  2 05:11:19 2005
226
227rtems_clock_get_tod          05:11:24   02/02/2005
228gettimeofday: Wed Feb  2 05:11:24 2005
229time:         Wed Feb  2 05:11:24 2005
230localtime:    Wed Feb  2 05:11:24 2005
231gmtime:       Wed Feb  2 05:11:24 2005
232
233rtems_clock_set          10:05:59   03/03/2010
234rtems_clock_get_tod          10:05:59   03/03/2010
235gettimeofday: Wed Mar  3 10:05:59 2010
236time:         Wed Mar  3 10:05:59 2010
237localtime:    Wed Mar  3 10:05:59 2010
238gmtime:       Wed Mar  3 10:05:59 2010
239
240rtems_clock_get_tod          10:06:04   03/03/2010
241gettimeofday: Wed Mar  3 10:06:04 2010
242time:         Wed Mar  3 10:06:04 2010
243localtime:    Wed Mar  3 10:06:04 2010
244gmtime:       Wed Mar  3 10:06:04 2010
245
246rtems_clock_get_tod          10:06:09   03/03/2010
247gettimeofday: Wed Mar  3 10:06:09 2010
248time:         Wed Mar  3 10:06:09 2010
249localtime:    Wed Mar  3 10:06:09 2010
250gmtime:       Wed Mar  3 10:06:09 2010
251
252rtems_clock_get_tod          10:06:14   03/03/2010
253gettimeofday: Wed Mar  3 10:06:14 2010
254time:         Wed Mar  3 10:06:14 2010
255localtime:    Wed Mar  3 10:06:14 2010
256gmtime:       Wed Mar  3 10:06:14 2010
257
258rtems_clock_get_tod          10:06:19   03/03/2010
259gettimeofday: Wed Mar  3 10:06:19 2010
260time:         Wed Mar  3 10:06:19 2010
261localtime:    Wed Mar  3 10:06:19 2010
262gmtime:       Wed Mar  3 10:06:19 2010
263
264rtems_clock_get_tod          10:06:24   03/03/2010
265gettimeofday: Wed Mar  3 10:06:24 2010
266time:         Wed Mar  3 10:06:24 2010
267localtime:    Wed Mar  3 10:06:24 2010
268gmtime:       Wed Mar  3 10:06:24 2010
269
270rtems_clock_set          15:00:59   04/04/2020
271rtems_clock_get_tod          15:00:59   04/04/2020
272gettimeofday: Sat Apr  4 15:00:59 2020
273time:         Sat Apr  4 15:00:59 2020
274localtime:    Sat Apr  4 15:00:59 2020
275gmtime:       Sat Apr  4 15:00:59 2020
276
277rtems_clock_get_tod          15:01:04   04/04/2020
278gettimeofday: Sat Apr  4 15:01:04 2020
279time:         Sat Apr  4 15:01:04 2020
280localtime:    Sat Apr  4 15:01:04 2020
281gmtime:       Sat Apr  4 15:01:04 2020
282
283rtems_clock_get_tod          15:01:09   04/04/2020
284gettimeofday: Sat Apr  4 15:01:09 2020
285time:         Sat Apr  4 15:01:09 2020
286localtime:    Sat Apr  4 15:01:09 2020
287gmtime:       Sat Apr  4 15:01:09 2020
288
289rtems_clock_get_tod          15:01:14   04/04/2020
290gettimeofday: Sat Apr  4 15:01:14 2020
291time:         Sat Apr  4 15:01:14 2020
292localtime:    Sat Apr  4 15:01:14 2020
293gmtime:       Sat Apr  4 15:01:14 2020
294
295rtems_clock_get_tod          15:01:19   04/04/2020
296gettimeofday: Sat Apr  4 15:01:19 2020
297time:         Sat Apr  4 15:01:19 2020
298localtime:    Sat Apr  4 15:01:19 2020
299gmtime:       Sat Apr  4 15:01:19 2020
300
301rtems_clock_get_tod          15:01:24   04/04/2020
302gettimeofday: Sat Apr  4 15:01:24 2020
303time:         Sat Apr  4 15:01:24 2020
304localtime:    Sat Apr  4 15:01:24 2020
305gmtime:       Sat Apr  4 15:01:24 2020
306
307
308
309*** END OF TIME OF DAY TEST 01 ***
Note: See TracBrowser for help on using the repository browser.