| 
    Zephyr Project API
    3.4.0
    
   A Scalable Open Source RTOS 
   | 
 
Macros | |
| #define | STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) | 
| #define | THREAD_TEST_PRIORITY 5 | 
Enumerations | |
| enum | {  MUTEX_INIT_NULL , MUTEX_INIT_INVALID_OBJ , MUTEX_LOCK_NULL , MUTEX_LOCK_INVALID_OBJ , MUTEX_UNLOCK_NULL , MUTEX_UNLOCK_INVALID_OBJ , NOT_DEFINE }  | 
Functions | |
| static | K_THREAD_STACK_DEFINE (tstack,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) | 
| void | ztest_post_fatal_error_hook (unsigned int reason, const z_arch_esf_t *pEsf) | 
| static void | tThread_entry_negative (void *p1, void *p2, void *p3) | 
| static int | create_negative_test_thread (int choice) | 
| ZTEST_USER (mutex_api_error, test_mutex_init_null) | |
| Test initializing mutex with a NULL pointer.  More... | |
| ZTEST_USER (mutex_api_error, test_mutex_init_invalid_obj) | |
| Test initialize mutex with a invalid kernel object.  More... | |
| ZTEST_USER (mutex_api_error, test_mutex_lock_null) | |
| Test locking mutex with a NULL pointer.  More... | |
| ZTEST_USER (mutex_api_error, test_mutex_lock_invalid_obj) | |
| Test locking mutex with a invalid kernel object.  More... | |
| ZTEST_USER (mutex_api_error, test_mutex_unlock_null) | |
| Test unlocking mutex with a NULL pointer.  More... | |
| ZTEST_USER (mutex_api_error, test_mutex_unlock_invalid_obj) | |
| Test unlocking mutex with a invalid kernel object.  More... | |
| static void * | mutex_api_tests_setup (void) | 
| ZTEST_SUITE (mutex_api_error, NULL, mutex_api_tests_setup, NULL, NULL, NULL) | |
Variables | |
| static ZTEST_DMEM int | case_type | 
| static struct k_mutex | mutex | 
| static struct k_sem | sem | 
| static struct k_pipe | pipe | 
| static struct k_queue | queue | 
| static struct k_thread | tdata | 
| enum { ... } | neg_case | 
| struct k_sem | offload_sem | 
| #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) | 
| #define THREAD_TEST_PRIORITY 5 | 
| anonymous enum | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
| void ztest_post_fatal_error_hook | ( | unsigned int | reason, | 
| const z_arch_esf_t * | pEsf | ||
| ) | 
| ZTEST_SUITE | ( | mutex_api_error | , | 
| NULL | , | ||
| mutex_api_tests_setup | , | ||
| NULL | , | ||
| NULL | , | ||
| NULL | |||
| ) | 
| ZTEST_USER | ( | mutex_api_error | , | 
| test_mutex_init_invalid_obj | |||
| ) | 
Test initialize mutex with a invalid kernel object.
Pass a invalid kobject as parameter, then see if the expected error happens.
| ZTEST_USER | ( | mutex_api_error | , | 
| test_mutex_init_null | |||
| ) | 
Test initializing mutex with a NULL pointer.
Pass a null pointer as parameter, then see if the expected error happens.
| ZTEST_USER | ( | mutex_api_error | , | 
| test_mutex_lock_invalid_obj | |||
| ) | 
Test locking mutex with a invalid kernel object.
Pass a invalid kobject as parameter, then see if the expected error happens.
| ZTEST_USER | ( | mutex_api_error | , | 
| test_mutex_lock_null | |||
| ) | 
Test locking mutex with a NULL pointer.
Pass a null pointer as parameter, then see if the expected error happens.
| ZTEST_USER | ( | mutex_api_error | , | 
| test_mutex_unlock_invalid_obj | |||
| ) | 
Test unlocking mutex with a invalid kernel object.
Pass a invalid kobject as parameter, then see if the expected error happens.
| ZTEST_USER | ( | mutex_api_error | , | 
| test_mutex_unlock_null | |||
| ) | 
Test unlocking mutex with a NULL pointer.
Pass a null pointer as parameter, then see if the expected error happens.
      
  | 
  static | 
      
  | 
  static | 
| enum { ... } neg_case | 
      
  | 
  extern | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static |