Added tests for 32 and 64 bit time.
[yaffs2.git] / direct / test-framework / unit_tests / 64_and_32_bit_time / 32_bit / time_32_tests.c
1 #include "yaffsfs.h"
2 #define YAFFS_MOUNT_POINT "/yflash2/"
3 #define FILE_PATH "/yflash2/foo.txt"
4
5 int random_seed;
6 int simulate_power_failure = 0;
7
8
9 int main()
10 {
11         yaffs_start_up();
12
13     //test that ytime is 64 bits
14
15     if (sizeof(YTIME_T) != 8) {
16         printf("Error:size of YTIME_T is not 64 bits\n");
17         return 1;
18     }
19
20
21     //create several times and save them
22     //
23
24     //extra tests
25     //save the time and get it to overflow.
26     printf("all tests pass\n");
27     return 0;
28 }