Martin Kojtal
e75794ec6e
Merge pull request #9888 from ARMmbed/feature-armc6
...
ARM Toolchain update to ARM Compiler 6.11(ARMC6)
2019-03-04 12:23:38 +01:00
Senthil Ramakrishnan
15cb4a4fee
Fix compiler flags for ARMC6 in sys stats test
2019-02-28 12:03:15 -06:00
Kevin Bracey
d2df5a03cb
Increase wait_ns test tolerance
2019-02-26 17:30:52 +02:00
Kevin Bracey
08a8f16e73
Add wait_ns timing test
2019-02-26 17:30:51 +02:00
Senthil Ramakrishnan
815066f853
Add debug prints to triage the test timeouts
2019-01-22 16:40:02 -06:00
Senthil Ramakrishnan
62d6eb5673
Increase the timeout for the host side script and the test
2019-01-22 16:04:47 -06:00
Alastair D'Silva
2617c5d55b
Don't use define checks on DEVICE_FOO macros (mbed code)
...
The DEVICE_FOO macros are always defined (either 0 or 1).
This patch replaces any instances of a define check on a DEVICE_FOO
macro with value test instead.
Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
2018-12-20 10:16:42 +11:00
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
Filip Jagodzinski
91e9010dd2
Tests: Stream: Use a quote from C99 spec
...
Use C99 instead of Linux man entry.
2018-12-10 16:30:16 +01:00
Filip Jagodzinski
5c9cc5b8f1
Tests: Stream: Add more test cases
2018-12-10 12:09:22 +01:00
Martin Kojtal
52aea31655
Merge pull request #8702 from SenRamakri/sen_CrashReportingImpl
...
Crash Reporting implementation
2018-11-23 20:24:53 +01:00
Martin Kojtal
5b42e2886f
Merge pull request #8607 from aashishc1988/ram_rom_fetch
...
Fetch ram/rom start/size
2018-11-22 10:49:50 +01:00
Senthil Ramakrishnan
f59b99d889
Removing support for printing error-report after reboot and other minor fixes
2018-11-18 22:42:37 -06:00
Senthil Ramakrishnan
423b52e1c3
Fix crc calculation error, code-style issues and other fixes
2018-11-16 17:24:52 -06:00
Senthil Ramakrishnan
4ec30e3e8f
Added greentea test
2018-11-16 14:00:00 -06:00
Aashish chaddha
329c553595
ifdef ram/rom size/start in case they dont exist
2018-11-16 09:38:26 -06:00
Deepika
e3c4dae875
Add tests to verify RAM/ROM sizes
2018-11-14 09:51:53 -06:00
Martin Kojtal
bbfa322afb
tests: fix astyle
2018-10-25 09:58:17 +01: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
Cruz Monrreal
ec03df4823
Merge pull request #7980 from kjbracey-arm/thread_deprecations
...
Clean up rtos::Thread deprecation warnings
2018-10-15 10:09:55 -05:00
Cruz Monrreal
6d7b655b87
Merge pull request #8331 from deepikabhavnani/getc_fix
...
Stream: add necessary flushes, removing unneeded IAR workaround
2018-10-12 08:59:16 -05:00
Kevin Bracey
1ef213ec89
Clean up Thread deprecation warnings
...
Static Thread methods and signal methods have been deprecated. Remove
all references in the main code, and most of the tests. Some tests of
the deprecated APIs themselves remain.
2018-10-12 14:57:13 +03:00
Deepika
f79a354311
Replace fflush to fseek before writes
...
You are allowed in POSIX / ANSI C to read and write on the same stream, but you
have to do an fseek in between read and write call (getc->fseek->putc)
Thanks @Alex-EEE for sharing the fix: https://github.com/ARMmbed/mbed-os/pull/7749
Added test case for verification of the behavior
2018-10-05 14:29:15 -05:00
Martin Kojtal
8adb8c3049
Merge pull request #7917 from deepikabhavnani/heap_overhead
...
Add overhead count in heap stats
2018-10-05 15:29:18 +02:00
deepikabhavnani
5f5882830f
Add `overhead_size` element to get the overhead of stats
...
Heap statistics are used for analysing heap stats, but it doesn't tell anything
about real heap usage or malloc overheads. Adding `overhead_size` element
will help users to get the real heap usage.
2018-10-03 16:41:24 -05:00
Shrikant Tudavekar
dc8b1fa98f
use forced_reset_timeout as delay after reset
2018-10-02 18:01:08 -05:00
Cruz Monrreal
4403a561b3
Merge pull request #7890 from deepikabhavnani/cb_issue_7701
...
Circular buffer should use conditional statement instead of modulo
2018-09-27 10:20:05 -05:00
Deepika
4e263b17b9
Refactor circular buffer test to platform folder
2018-08-27 09:33:07 -05:00
Cruz Monrreal
deb905da1d
Merge pull request #7815 from donatieng/shared_ptr
...
Re-add Shared Pointer Class into platform features
2018-08-23 10:09:02 -05:00
Donatien Garnier
3c599feee7
Add Greentea tests for shared pointer
2018-08-20 18:49:26 +01:00
Martin Kojtal
e52bb68f93
tests: astyle fix
...
All tests should comply to our coding standard now
2018-08-03 10:23:38 +01:00
David Saada
a224ca764a
Skip a few tests if not enough memory can be allocated for them.
2018-07-16 17:21:21 +03:00
Deepika
b05d105493
Update stats to fetch Mbed OS version info
2018-07-13 11:58:49 -05:00
Senthil Ramakrishnan
baa44eb3f2
Limit error filename capture to 64 chars, wrapping tests with right configs and astyle fixes.
2018-06-20 11:56:32 -05:00
Senthil Ramakrishnan
cbb12e326d
Updates to configuration flags used in error handling implementation.
...
The new configuration make Error history tracking switched off by default and enabled by using the config flag MBED_CONF_PLATFORM_ERROR_HIST_ENABLED.
Config flag MBED_CONF_PLATFORM_ERROR_ALL_THREADS_INFO enables printing info of all threads. This will be turned off by default.
2018-06-20 11:56:31 -05:00
Cruz Monrreal
e93aaabff3
Only exclude RTOS-specifc tests in error_handling
...
Allows for other tests to run if no RTOS is present.
2018-06-13 10:33:37 -05:00
Cruz Monrreal
5fe241bac9
Wrapped test around MBED_CONF_RTOS_PRESENT
...
Wrapping a #define to prevent test from being run when no RTOS is present.
2018-06-13 09:28:53 -05:00
Cruz Monrreal
6fa560930c
Corrected casting issue with an assert within the error_handling test
...
Discovered via https://github.com/ARMmbed/mbed-os/pull/7105 .
If both values are negative values, they are casted in such a way that -1 != -1. This small commit fixes that.
2018-06-12 22:09:51 -05:00
deepikabhavnani
d764a7c627
OS version is not available in code, need a fix for this in next patch release
2018-05-30 08:57:47 -05:00
Bartek Szatkowski
efd307fa79
Rename new occurrences of LOWPOWERTIMER to LPTICKER
2018-05-25 12:33:43 -05:00
Cruz Monrreal
527f9a12fd
Merge pull request #6983 from SenRamakri/sen_ErrorHandling_Push2
...
Standardized Error Handling and Error Codes
2018-05-24 10:57:00 -05:00
deepikabhavnani
ea356a6e8c
Increased wait time to allow device to sleep
...
With small wait time at the start, chances are that device does not
enter sleep and idle time is zero. Increasing wait time to make sure
device goes to sleep.
2018-05-23 15:06:17 -05:00
Senthil Ramakrishnan
5ef6728c08
Splitting MBED_ERROR macros to support ones with/without error value argument
2018-05-23 12:21:28 -05:00
Senthil Ramakrishnan
693a6c40bb
Refactor error reporting
2018-05-23 12:21:11 -05:00
Senthil Ramakrishnan
d4fe75731d
Adding mbed prefixes to all macros and functions to avoid namespace conflicts
2018-05-23 12:21:10 -05:00
Senthil Ramakrishnan
147d9cac4e
Test application/cases optimization for some low memory targets, macro changes and test fixes
2018-05-23 12:21:10 -05:00
Senthil Ramakrishnan
f9c25612ae
Fix test failures when trap errors are enabled and other fixes
2018-05-23 12:21:10 -05:00
Senthil Ramakrishnan
cbfc06577b
Fixes to align with naming conventions
2018-05-23 12:21:09 -05:00
Senthil Ramakrishnan
92df68b1ea
Changed variable names for registers to avoid namespace conflicts, build fixes, macros and other fixes
2018-05-23 12:21:09 -05:00