Commit Graph

6 Commits (2f1338b89fc2d8d932b1165a4e19d76989219c66)

Author SHA1 Message Date
Kevin Bracey 7b5939c05b Add ftruncate / fstat(st_size) unit test 2018-12-14 19:29:29 +02:00
Kevin Bracey ff7a316a32 Rework fseek/ftell tests
ARM C library is really good at optimising out calls to underlying
seek. The only ones we were actually detecting in the empty file case
were the ones that the default FileHandle::size() made itself during
the SEEK_END case.

When we implement TestFile::size() directly, we will no longer see
a single seek call from the ARM C library in the empty file case, so
remove those tests.

Beef up the non-empty file case, adding checks that we are making
underlying read+write calls in the correct position, as a proxy for
direct checks for underlying seek being called.
2018-12-14 19:29:27 +02:00
Deepika 9db31d299b Resolve build issues in test
mbed.h was added in test, via greentea and utest header files. 'mbed.h' is removed
from header files and required header file and namespace is added to CPP/C files
2018-10-16 11:50:16 -05:00
Martin Kojtal e52bb68f93 tests: astyle fix
All tests should comply to our coding standard now
2018-08-03 10:23:38 +01:00
Maciej Bocianski 0b6f14fbd1 platform: FileHandle test - remove optimization for stdlib diversity 2018-02-23 10:07:52 +01:00
Maciej Bocianski 8e1cfe2191 Add FileHandle tests 2018-02-02 14:57:12 +01:00