yaffsfs.c: Fix NULL dereference in yaffs_unmount2_reldev()
[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 32 bits
14
15     if (sizeof(YTIME_T) != 4) {
16         printf("Error:size of YTIME_T is %lu, not 32 bits \n", sizeof(YTIME_T)*8);
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 }