1 /*
2  * Copyright (c) 2003, Intel Corporation. All rights reserved.
3  * Created by:  majid.awad REMOVE-THIS AT intel DOT com
4  * This file is licensed under the GPL license.  For the full content
5  * of this license, see the COPYING file at the top level of this
6  * source tree.
7  *
8  *
9  *
10  * This test case shall return PASS on returning the value of time, otherwise
11  * it fails with -1.
12  */
13 
14 #include <stdio.h>
15 #include <stdint.h>
16 #include <time.h>
17 #include "posixtest.h"
18 
main(void)19 int main(void)
20 {
21 	time_t current_time;
22 
23 	current_time = time(NULL);
24 	printf("%ju secs since the Epoch\n", (uintmax_t) current_time);
25 
26 	if (current_time != -1) {
27 		puts("Test PASSED");
28 		return PTS_PASS;
29 	} else {
30 		puts("Test FAILED: not value for time.");
31 		return PTS_FAIL;
32 	}
33 }
34