Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / native_client / tests / glibc_syscall_wrappers / test_time.c
1 /*
2  * Copyright 2010 The Native Client Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6
7 #include <assert.h>
8 #include <time.h>
9
10 int main(void) {
11   time_t a, b;
12
13   a = time(&b);
14   /* Compare with January 1st 2010 */
15   assert(1262304000 < a);
16   assert(a == b);
17   return 0;
18 }