Commit Graph

7 Commits

Author SHA1 Message Date
Ramakrishna Pallala 46931c9a44 tests: posix: Resolve header file dependencies
Fixed header file dependencies by reordering the
inclusion sequence in posix tests.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
2018-04-05 16:43:05 -04:00
Niranjhana N 2ecaee071c tests: posix: Fixing pthread attr object initialization.
In some cases pthread attrib initialization may fail as
garbare value may indicate that this attribute is already
initialized. Destroy the attr object and recreate it.

Signed-off-by: Niranjhana N <niranjhana.n@intel.com>
2018-04-03 15:57:14 -04:00
Juan Manuel Torres Palma 4aa49053f6 tests: posix: fix semaphore.h test
Previous implementation was buggy, destroying
resources with pending thread and race conditions.

New version tests basic functionality with 2
threads and basic synchronization.

Signed-off-by: Juan Manuel Torres Palma <j.m.torrespalma@gmail.com>
2018-03-21 14:27:47 -07:00
Punit Vara 9edc7ce490 tests: semaphore: test APIs
Test sem_destroy and sem_trywait.

Signed-off-by: Punit Vara <punit.vara@intel.com>
2018-03-10 21:30:14 -05:00
Anas Nashif 0a59c6b30a tests: posix: add negative testing for semaphore
More asserts on API calls and error handling.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-03-06 22:40:04 -05:00
Anas Nashif d5e8a2c5a1 tests: posix: fix test names in yaml
Use meaningful test names.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-03-06 22:40:04 -05:00
Punit Vara 0306344f59 tests: add semaphore posix API test
This test case tests posix APIs which are implemented for semaphore.

Signed-off-by: Punit Vara <punit.vara@intel.com>
2018-03-05 20:51:36 -05:00