X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftest-framework%2Funit_tests%2F64_and_32_bit_time%2F64_bit%2Ftime_64_tests.c;fp=direct%2Ftest-framework%2Funit_tests%2F64_and_32_bit_time%2F64_bit%2Ftime_64_tests.c;h=8d10d27ca7e7455938deb08b9807a16d2bd7b955;hp=0000000000000000000000000000000000000000;hb=c0af9aaf1f09bb197276aa63d672f789a80cec94;hpb=a25e4d92631bbb348f600e7c2edacf5603b11c3e diff --git a/direct/test-framework/unit_tests/64_and_32_bit_time/64_bit/time_64_tests.c b/direct/test-framework/unit_tests/64_and_32_bit_time/64_bit/time_64_tests.c new file mode 100644 index 0000000..8d10d27 --- /dev/null +++ b/direct/test-framework/unit_tests/64_and_32_bit_time/64_bit/time_64_tests.c @@ -0,0 +1,28 @@ +#include "yaffsfs.h" +#define YAFFS_MOUNT_POINT "/yflash2/" +#define FILE_PATH "/yflash2/foo.txt" + +int random_seed; +int simulate_power_failure = 0; + + +int main() +{ + yaffs_start_up(); + + //test that ytime is 64 bits + + if (sizeof(YTIME_T) != 8) { + printf("Error:size of YTIME_T is not 64 bits\n"); + return 1; + } + + + //create several times and save them + // + + //extra tests + //save the time and get it to overflow. + printf("all tests pass\n"); + return 0; +}