Home
last modified time | relevance | path

Searched refs:zassert_ok (Results 1 – 25 of 191) sorted by relevance

12345678

/Zephyr-latest/tests/posix/c_lib_ext/src/
Dfnmatch.c18 zassert_ok(fnmatch("*.c", "foo.c", 0)); in ZTEST()
19 zassert_ok(fnmatch("*.c", ".c", 0)); in ZTEST()
21 zassert_ok(fnmatch("*.c", ".foo.c", 0)); in ZTEST()
23 zassert_ok(fnmatch("*.c", "foo.c", FNM_PERIOD)); in ZTEST()
26 zassert_ok(fnmatch("a[xy].c", "ax.c", 0)); in ZTEST()
27 zassert_ok(fnmatch("a[!y].c", "ax.c", 0)); in ZTEST()
29 zassert_ok(fnmatch("a/*.c", "a/x.c", FNM_PATHNAME)); in ZTEST()
31 zassert_ok(fnmatch("*/foo", "/foo", FNM_PATHNAME)); in ZTEST()
32 zassert_ok(fnmatch("-O[01]", "-O1", 0)); in ZTEST()
35 zassert_ok(fnmatch("[!]a-]", "b", 0)); in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/display/cfb/basic/src/
Ddraw_text_rectspace1016.c38 zassert_ok(display_write(dev, 0, 0, &desc, read_buffer)); in cfb_test_before()
40 zassert_ok(display_blanking_off(dev)); in cfb_test_before()
42 zassert_ok(cfb_framebuffer_init(dev)); in cfb_test_before()
69 zassert_ok(cfb_draw_text(dev, " ", 0, 0)); in ZTEST()
70 zassert_ok(cfb_framebuffer_finalize(dev)); in ZTEST()
77 zassert_ok(cfb_draw_text(dev, " ", 1, 1)); in ZTEST()
78 zassert_ok(cfb_framebuffer_finalize(dev)); in ZTEST()
88 zassert_ok(cfb_draw_text(dev, " ", 9, 15)); in ZTEST()
89 zassert_ok(cfb_framebuffer_finalize(dev)); in ZTEST()
96 zassert_ok(cfb_draw_text(dev, " ", 10, 16)); in ZTEST()
[all …]
Dprint_rectspace1016.c38 zassert_ok(display_write(dev, 0, 0, &desc, read_buffer)); in cfb_test_before()
40 zassert_ok(display_blanking_off(dev)); in cfb_test_before()
42 zassert_ok(cfb_framebuffer_init(dev)); in cfb_test_before()
69 zassert_ok(cfb_print(dev, " ", 0, 0)); in ZTEST()
70 zassert_ok(cfb_framebuffer_finalize(dev)); in ZTEST()
77 zassert_ok(cfb_print(dev, " ", 1, 1)); in ZTEST()
78 zassert_ok(cfb_framebuffer_finalize(dev)); in ZTEST()
88 zassert_ok(cfb_print(dev, " ", 9, 15)); in ZTEST()
89 zassert_ok(cfb_framebuffer_finalize(dev)); in ZTEST()
96 zassert_ok(cfb_print(dev, " ", 10, 16)); in ZTEST()
[all …]
Ddraw_point.c35 zassert_ok(display_write(dev, 0, 0, &desc, read_buffer)); in cfb_test_before()
37 zassert_ok(display_blanking_off(dev)); in cfb_test_before()
39 zassert_ok(cfb_framebuffer_init(dev)); in cfb_test_before()
54 zassert_ok(cfb_draw_point(dev, &pos)); in ZTEST()
55 zassert_ok(cfb_framebuffer_finalize(dev)); in ZTEST()
64 zassert_ok(cfb_draw_point(dev, &pos)); in ZTEST()
65 zassert_ok(cfb_framebuffer_finalize(dev)); in ZTEST()
77 zassert_ok(cfb_draw_point(dev, &pos)); in ZTEST()
78 zassert_ok(cfb_framebuffer_finalize(dev)); in ZTEST()
87 zassert_ok(cfb_draw_point(dev, &pos)); in ZTEST()
[all …]
Ddraw_rect.c35 zassert_ok(display_write(dev, 0, 0, &desc, read_buffer)); in cfb_test_before()
37 zassert_ok(display_blanking_off(dev)); in cfb_test_before()
39 zassert_ok(cfb_framebuffer_init(dev)); in cfb_test_before()
55 zassert_ok(cfb_draw_rect(dev, &start, &end), ""); in ZTEST()
56 zassert_ok(cfb_framebuffer_finalize(dev), ""); in ZTEST()
66 zassert_ok(cfb_draw_rect(dev, &start, &end), ""); in ZTEST()
67 zassert_ok(cfb_framebuffer_finalize(dev), ""); in ZTEST()
78 zassert_ok(cfb_draw_rect(dev, &start, &end), ""); in ZTEST()
79 zassert_ok(cfb_framebuffer_finalize(dev), ""); in ZTEST()
89 zassert_ok(cfb_draw_rect(dev, &start, &end), ""); in ZTEST()
[all …]
Ddraw_line.c35 zassert_ok(display_write(dev, 0, 0, &desc, read_buffer)); in cfb_test_before()
37 zassert_ok(display_blanking_off(dev)); in cfb_test_before()
39 zassert_ok(cfb_framebuffer_init(dev)); in cfb_test_before()
52 zassert_ok(cfb_draw_line(dev, &start, &end)); in ZTEST()
53 zassert_ok(cfb_framebuffer_finalize(dev)); in ZTEST()
63 zassert_ok(cfb_draw_line(dev, &start, &end)); in ZTEST()
64 zassert_ok(cfb_framebuffer_finalize(dev)); in ZTEST()
74 zassert_ok(cfb_draw_line(dev, &start, &end)); in ZTEST()
75 zassert_ok(cfb_framebuffer_finalize(dev)); in ZTEST()
85 zassert_ok(cfb_draw_line(dev, &start, &end)); in ZTEST()
[all …]
Dinvert.c35 zassert_ok(display_write(dev, 0, 0, &desc, read_buffer)); in cfb_test_before()
37 zassert_ok(display_blanking_off(dev)); in cfb_test_before()
39 zassert_ok(cfb_framebuffer_init(dev)); in cfb_test_before()
49 zassert_ok(cfb_framebuffer_invert(dev)); in ZTEST()
50 zassert_ok(cfb_framebuffer_finalize(dev)); in ZTEST()
57 zassert_ok(cfb_invert_area(dev, 10, 10, 10, 10)); in ZTEST()
58 zassert_ok(cfb_framebuffer_finalize(dev)); in ZTEST()
62 zassert_ok(cfb_framebuffer_invert(dev)); in ZTEST()
63 zassert_ok(cfb_framebuffer_finalize(dev)); in ZTEST()
Dinvert_area.c35 zassert_ok(display_write(dev, 0, 0, &desc, read_buffer)); in cfb_test_before()
37 zassert_ok(display_blanking_off(dev)); in cfb_test_before()
39 zassert_ok(cfb_framebuffer_init(dev)); in cfb_test_before()
49 zassert_ok(cfb_invert_area(dev, 0, 0, 320, 240)); in ZTEST()
50 zassert_ok(cfb_framebuffer_finalize(dev), "cfb_framebuffer_finalize failed"); in ZTEST()
57 zassert_ok(cfb_invert_area(dev, 33, 37, 79, 77)); in ZTEST()
58 zassert_ok(cfb_invert_area(dev, 100, 37, 53, 77)); in ZTEST()
59 zassert_ok(cfb_framebuffer_finalize(dev), "cfb_framebuffer_finalize failed"); in ZTEST()
93 zassert_ok(cfb_invert_area(dev, display_width - 10, display_height - 10, 20, 20)); in ZTEST()
94 zassert_ok(cfb_framebuffer_finalize(dev)); in ZTEST()
/Zephyr-latest/tests/drivers/comparator/gpio_loopback/src/
Dtest.c24 zassert_ok(gpio_pin_configure_dt(&test_pin, GPIO_OUTPUT_INACTIVE)); in test_setup()
33 zassert_ok(gpio_pin_set_dt(&test_pin, 0)); in test_before()
34 zassert_ok(comparator_set_trigger(test_dev, COMPARATOR_TRIGGER_NONE)); in test_before()
35 zassert_ok(comparator_set_trigger_callback(test_dev, NULL, NULL)); in test_before()
45 zassert_ok(gpio_pin_set_dt(&test_pin, 1)); in ZTEST()
49 zassert_ok(gpio_pin_set_dt(&test_pin, 0)); in ZTEST()
56 zassert_ok(gpio_pin_set_dt(&test_pin, 1)); in ZTEST()
59 zassert_ok(gpio_pin_set_dt(&test_pin, 0)); in ZTEST()
66 zassert_ok(comparator_set_trigger(test_dev, COMPARATOR_TRIGGER_RISING_EDGE)); in ZTEST()
69 zassert_ok(gpio_pin_set_dt(&test_pin, 1)); in ZTEST()
[all …]
/Zephyr-latest/tests/posix/common/src/
Dkey.c28 zassert_ok(pthread_setspecific(key, value), "pthread_setspecific failed"); in thread_top()
43 zassert_ok(pthread_setspecific(keys[i], value), "pthread_setspecific failed"); in thread_func()
53 zassert_ok(pthread_key_create(&key, NULL), "insufficient memory to create key"); in make_key()
59 zassert_ok(pthread_key_create(&keys[i], NULL), in make_keys()
82 zassert_ok(pthread_once(&key_once, make_key), "attempt to create key failed"); in ZTEST()
87 zassert_ok(pthread_create(&newthread[i], NULL, thread_top, NULL), in ZTEST()
92 zassert_ok(pthread_join(newthread[i], &retval), "failed to join thread %d", i); in ZTEST()
95 zassert_ok(pthread_key_delete(key), "attempt to delete key failed"); in ZTEST()
102 zassert_ok(pthread_once(&keys_once, make_keys), "attempt to create keys failed"); in ZTEST()
106 zassert_ok(pthread_create(&newthread, NULL, thread_func, NULL), in ZTEST()
[all …]
Dmutex.c57 zassert_ok(pthread_mutexattr_init(&mut_attr)); in test_mutex_common()
58 zassert_ok(pthread_mutexattr_settype(&mut_attr, type), "setting mutex type is failed"); in test_mutex_common()
59 zassert_ok(pthread_mutex_init(&mutex, &mut_attr), "mutex initialization is failed"); in test_mutex_common()
61 zassert_ok(pthread_mutexattr_gettype(&mut_attr, &actual_type), in test_mutex_common()
69 zassert_ok(pthread_mutexattr_setprotocol(&mut_attr, PTHREAD_PRIO_NONE)); in test_mutex_common()
70 zassert_ok(pthread_mutexattr_getprotocol(&mut_attr, &protocol), in test_mutex_common()
72 zassert_ok(pthread_mutexattr_destroy(&mut_attr)); in test_mutex_common()
74 zassert_ok(pthread_mutex_lock(&mutex)); in test_mutex_common()
79 zassert_ok(pthread_create(&th, NULL, entry, NULL)); in test_mutex_common()
82 zassert_ok(pthread_mutex_unlock(&mutex)); in test_mutex_common()
[all …]
Dcond.c22 zassert_ok(pthread_cond_init(&m[i], NULL), "failed to init cond %zu", i); in ZTEST()
31 zassert_ok(pthread_cond_destroy(&m[i - 1]), "failed to destroy cond %zu", i - 1); in ZTEST()
45 zassert_ok(pthread_cond_init(&cond, NULL), "failed to init cond %zu", i); in ZTEST()
46 zassert_ok(pthread_cond_destroy(&cond), "failed to destroy cond %zu", i); in ZTEST()
55 zassert_ok(pthread_condattr_init(&att)); in ZTEST()
57 zassert_ok(pthread_condattr_getclock(&att, &clock_id), "pthread_condattr_getclock failed"); in ZTEST()
60 zassert_ok(pthread_condattr_setclock(&att, CLOCK_REALTIME), in ZTEST()
63 zassert_ok(pthread_condattr_getclock(&att, &clock_id), "pthread_condattr_setclock failed"); in ZTEST()
69 zassert_ok(pthread_condattr_destroy(&att)); in ZTEST()
Dmqueue.c84 zassert_ok(pthread_create(&newthread[i], NULL, in ZTEST()
109 zassert_ok(strcmp(rec_data, send_data), in notify_function_basic()
112 zassert_ok(mq_close(mqd), "Unable to close message queue descriptor."); in notify_function_basic()
137 zassert_ok(mq_notify(mqd, &not), "Unable to set notification."); in ZTEST()
139 zassert_ok(mq_send(mqd, send_data, MESSAGE_SIZE, 0), "Unable to send message"); in ZTEST()
143 zassert_ok(mq_close(mqd), "Unable to close message queue descriptor."); in ZTEST()
144 zassert_ok(mq_unlink(queue), "Unable to unlink queue"); in ZTEST()
158 zassert_ok(strcmp(rec_data, send_data), in notify_function_thread()
161 zassert_ok(mq_close(mqd), "Unable to close message queue descriptor."); in notify_function_thread()
186 zassert_ok(mq_notify(mqd, &not), "Unable to set notification."); in ZTEST()
[all …]
Dpthread_attr.c46 zassert_ok(pthread_create(&th, attrp, entry, arg)); in create_thread_common_entry()
53 zassert_ok(pthread_join(th, NULL), "failed to join joinable thread"); in create_thread_common_entry()
110 zassert_ok(pthread_attr_init(&attr1)); in ZTEST()
120 zassert_ok(pthread_attr_init(&attr)); in ZTEST()
129 zassert_ok(pthread_attr_destroy(&attr), "failed to destroy an initialized attr"); in ZTEST()
136 zassert_ok(pthread_attr_destroy(&attr)); in ZTEST()
140 zassert_ok(pthread_attr_init(&attr)); in ZTEST()
142 zassert_ok(pthread_attr_setstack(&attr, &static_thread_stack, STATIC_THREAD_STACK_SIZE)); in ZTEST()
168 zassert_ok(pthread_attr_getschedparam(&attr, &param)); in ZTEST()
189 zassert_ok(pthread_attr_setschedparam(&attr, &param)); in ZTEST()
[all …]
/Zephyr-latest/tests/posix/rwlocks/src/
Dmain.c28 zassert_ok(pthread_rwlock_rdlock(&rwlock), "Failed to acquire write lock"); in thread_top()
34 zassert_ok(pthread_rwlock_unlock(&rwlock), "Failed to unlock"); in thread_top()
39 zassert_ok(pthread_rwlock_wrlock(&rwlock), "Failed to acquire WR lock"); in thread_top()
45 zassert_ok(pthread_rwlock_unlock(&rwlock), "Failed to unlock"); in thread_top()
69 zassert_ok(pthread_rwlock_init(&rwlock, NULL), "Failed to create rwlock"); in ZTEST()
71 zassert_ok(pthread_rwlock_timedwrlock(&rwlock, &time), "Failed to acquire write lock"); in ZTEST()
75 zassert_ok(pthread_create(&newthread[i], NULL, thread_top, NULL), in ZTEST()
82 zassert_ok(pthread_rwlock_unlock(&rwlock), "Failed to unlock"); in ZTEST()
92 zassert_ok(pthread_rwlock_wrlock(&rwlock), "Failed to acquire write lock"); in ZTEST()
98 zassert_ok(pthread_rwlock_unlock(&rwlock), "Failed to unlock"); in ZTEST()
[all …]
/Zephyr-latest/tests/posix/signals/src/
Dmain.c23 zassert_ok(sigemptyset(&set)); in ZTEST()
34 zassert_ok(sigfillset(&set)); in ZTEST()
62 zassert_ok(sigaddset(&set, signo)); in ZTEST()
71 zassert_ok(sigaddset(&set, signo)); in ZTEST()
80 zassert_ok(sigaddset(&set, signo)); in ZTEST()
93 zassert_ok(sigaddset(&set, signo)); in ZTEST()
123 zassert_ok(sigdelset(&set, signo)); in ZTEST()
132 zassert_ok(sigdelset(&set, signo)); in ZTEST()
141 zassert_ok(sigdelset(&set, signo)); in ZTEST()
154 zassert_ok(sigdelset(&set, signo)); in ZTEST()
[all …]
/Zephyr-latest/tests/posix/threads_ext/src/
Dmain.c36 zassert_ok(pthread_attr_getguardsize(&attr, &guardsize)); in ZTEST()
47 zassert_ok(pthread_attr_getguardsize(&attr, &guardsize)); in ZTEST()
63 zassert_ok(pthread_attr_setguardsize(&attr, sizes[i])); in ZTEST()
65 zassert_ok(pthread_attr_getguardsize(&attr, &guardsize)); in ZTEST()
86 zassert_ok(pthread_mutexattr_init(&attr)); in ZTEST()
87 zassert_ok(pthread_mutexattr_gettype(&attr, &type)); in ZTEST()
89 zassert_ok(pthread_mutexattr_destroy(&attr)); in ZTEST()
109 zassert_ok(pthread_mutexattr_init(&attr)); in ZTEST()
111 zassert_ok(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_DEFAULT)); in ZTEST()
112 zassert_ok(pthread_mutexattr_gettype(&attr, &type)); in ZTEST()
[all …]
/Zephyr-latest/tests/drivers/ethernet/eth_ivshmem_queue/src/
Dmain.c30 zassert_ok(res); in test_init_queues()
34 zassert_ok(res); in test_init_queues()
74 zassert_ok(queue_tx(&q1, &x, sizeof(x))); in ZTEST()
77 zassert_ok(eth_ivshmem_queue_rx(&q2, &rx_message, &rx_len)); in ZTEST()
80 zassert_ok(eth_ivshmem_queue_rx_complete(&q2)); in ZTEST()
88 zassert_ok(queue_tx(&q1, &q1_tx_data, sizeof(q1_tx_data))); in ZTEST()
93 zassert_ok(queue_tx(&q2, &q2_tx_data, sizeof(q2_tx_data))); in ZTEST()
96 zassert_ok(eth_ivshmem_queue_rx(&q2, &rx_message, &rx_len)); in ZTEST()
99 zassert_ok(eth_ivshmem_queue_rx_complete(&q2)); in ZTEST()
102 zassert_ok(eth_ivshmem_queue_rx(&q1, &rx_message, &rx_len)); in ZTEST()
[all …]
/Zephyr-latest/tests/posix/spinlocks/src/
Dmain.c23 zassert_ok(pthread_spin_init(&lock, PTHREAD_PROCESS_PRIVATE), "pthread_spin_init() failed"); in ZTEST()
24 zassert_ok(pthread_spin_destroy(&lock), "pthread_spin_destroy() failed"); in ZTEST()
33 zassert_ok(pthread_spin_init(&lock[i], PTHREAD_PROCESS_PRIVATE), in ZTEST()
44 zassert_ok(pthread_spin_destroy(&lock[i]), in ZTEST()
61 zassert_ok(pthread_spin_init(&lock, PTHREAD_PROCESS_PRIVATE), "pthread_spin_init() failed"); in ZTEST()
63 zassert_ok(pthread_spin_lock(&lock), "pthread_spin_lock() failed"); in ZTEST()
64 zassert_ok(pthread_spin_unlock(&lock), "pthread_spin_lock() failed"); in ZTEST()
66 zassert_ok(pthread_spin_trylock(&lock), "pthread_spin_trylock() failed"); in ZTEST()
67 zassert_ok(pthread_spin_unlock(&lock), "pthread_spin_unlock() failed"); in ZTEST()
69 zassert_ok(pthread_spin_destroy(&lock), "pthread_spin_init() failed"); in ZTEST()
/Zephyr-latest/tests/posix/eventfd/src/
Dioctl.c31 zassert_ok(ret); in ZTEST_F()
34 zassert_ok(ret); in ZTEST_F()
40 zassert_ok(ret); in ZTEST_F()
52 zassert_ok(ret); in ZTEST_F()
55 zassert_ok(ret); in ZTEST_F()
61 zassert_ok(ret); in ZTEST_F()
73 zassert_ok(ret); in ZTEST_F()
76 zassert_ok(ret); in ZTEST_F()
87 zassert_ok(ret); in ZTEST_F()
90 zassert_ok(ret); in ZTEST_F()
/Zephyr-latest/tests/drivers/gpio/gpio_enable_disable_interrupt/src/
Dmain.c42 zassert_ok(gpio_pin_configure_dt(fixture->irq_spec, GPIO_INPUT)); in gpio_enable_disable_interrupt_before()
43 zassert_ok(gpio_emul_input_set(fixture->irq_spec->port, fixture->irq_spec->pin, 0), in gpio_enable_disable_interrupt_before()
47 zassert_ok(gpio_pin_interrupt_configure_dt(fixture->irq_spec, GPIO_INT_DISABLE)); in gpio_enable_disable_interrupt_before()
49 zassert_ok(gpio_add_callback(fixture->irq_spec->port, &cb_data), "failed to add callback"); in gpio_enable_disable_interrupt_before()
57 zassert_ok(gpio_remove_callback(fixture->irq_spec->port, &cb_data), in gpio_enable_disable_interrupt_after()
63 zassert_ok(gpio_pin_interrupt_configure_dt(irq_spec, GPIO_INT_MODE_ENABLE_ONLY), in enable_interrupt()
69 zassert_ok(gpio_pin_interrupt_configure_dt(irq_spec, GPIO_INT_MODE_DISABLE_ONLY), in disable_interrupt()
75 zassert_ok(gpio_emul_input_set(irq_spec->port, irq_spec->pin, 1), in trigger_callback()
90 zassert_ok(gpio_pin_interrupt_configure_dt(fixture->irq_spec, GPIO_INT_EDGE_RISING), in ZTEST_F()
99 zassert_ok(gpio_pin_interrupt_configure_dt(fixture->irq_spec, GPIO_INT_EDGE_RISING), in ZTEST_F()
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/
Dtest_fat_file_reentrant.c30 zassert_ok(k_sem_init(&mutex_unlocked_sem, 0, 1), NULL); in test_reentrant_access()
31 zassert_ok(k_sem_init(&run_non_thread_sem, 0, 1), NULL); in test_reentrant_access()
48 zassert_ok(res, "Err: File could not be opened [%d]\n", res); in test_reentrant_access()
57 zassert_ok(res, "Error closing file [%d]\n", res); in test_reentrant_access()
59 zassert_ok(res, "Error deleting file [%d]\n", res); in test_reentrant_access()
74 zassert_ok(res, "Err: File 1 could not be opened [%d]\n", res); in test_reentrant_parallel_file_access()
94 zassert_ok(res, "Err: File 2 does not exist [%d]\n", res); in test_reentrant_parallel_file_access()
98 zassert_ok(res, "Error closing file 2 [%d]\n", res); in test_reentrant_parallel_file_access()
100 zassert_ok(res, "Error deleting file 2 [%d]\n", res); in test_reentrant_parallel_file_access()
102 zassert_ok(res, "Error closing file 1 [%d]\n", res); in test_reentrant_parallel_file_access()
[all …]
/Zephyr-latest/tests/posix/xsi_threads_ext/src/
Dmain.c48 zassert_ok(pthread_create(&th, attrp, entry, arg)); in create_thread_common_entry()
55 zassert_ok(pthread_join(th, NULL), "failed to join joinable thread"); in create_thread_common_entry()
104 zassert_ok(pthread_attr_getstack(&attr, &stackaddr, &stacksize)); in ZTEST()
117 zassert_ok(pthread_attr_getstack(&attr, &stackaddr, &stacksize)); in ZTEST()
140 zassert_ok(pthread_attr_setstack(&attr, stackaddr, stacksize)); in ZTEST()
150 zassert_ok(pthread_attr_setstack(&attr, stackaddr, stacksize - 1)); in ZTEST()
152 zassert_ok(pthread_attr_getstack(&attr, &new_stackaddr, &new_stacksize)); in ZTEST()
165 zassert_ok(pthread_attr_setstack(&attr, (void *)stack, 2 * stacksize)); in ZTEST()
167 zassert_ok(pthread_attr_getstack(&attr, &new_stackaddr, &new_stacksize)); in ZTEST()
188 zassert_ok(pthread_setconcurrency(i)); in ZTEST()
[all …]
/Zephyr-latest/tests/drivers/smbus/smbus_api/src/
Dtest_smbus_qemu.c40 zassert_ok(ret, "SMBUS Quick W failed, ret %d", ret); in ZTEST_USER()
43 zassert_ok(ret, "SMBUS Quick R failed, ret %d", ret); in ZTEST_USER()
53 zassert_ok(ret, "SMBUS write byte data failed, ret %d", ret); in ZTEST_USER()
57 zassert_ok(ret, "SMBUS read byte data failed, ret %d", ret); in ZTEST_USER()
69 zassert_ok(ret, "SMBUS write word data failed, ret %d", ret); in ZTEST_USER()
73 zassert_ok(ret, "SMBUS read word data failed, ret %d", ret); in ZTEST_USER()
87 zassert_ok(ret, "SMBUS write byte data failed, ret %d", ret); in ZTEST_USER()
96 zassert_ok(ret, "SMBUS write byte failed, ret %d", ret); in ZTEST_USER()
99 zassert_ok(ret, "SMBUS read byte failed, ret %d", ret); in ZTEST_USER()
122 zassert_ok(ret, "SMBUS write block failed, ret %d", ret); in ZTEST_USER()
[all …]
/Zephyr-latest/tests/drivers/gpio/gpio_ite_it8xxx2_v2/src/
Dmain.c90 zassert_ok(gpio_remove_callback(gpio_dev, &callback_struct)); in after_test()
100 zassert_ok(gpio_pin_configure(gpio_dev, TEST_PIN, GPIO_INPUT | GPIO_ACTIVE_HIGH)); in ZTEST()
114 zassert_ok(gpio_pin_configure(gpio_dev, TEST_PIN, GPIO_INPUT | GPIO_ACTIVE_LOW)); in ZTEST()
128 zassert_ok(gpio_pin_configure(gpio_dev, TEST_PIN, GPIO_INPUT | GPIO_ACTIVE_HIGH)); in ZTEST()
131 zassert_ok(gpio_add_callback(gpio_dev, &callback_struct)); in ZTEST()
132 zassert_ok(gpio_pin_interrupt_configure(gpio_dev, TEST_PIN, GPIO_INT_EDGE_TO_ACTIVE)); in ZTEST()
152 zassert_ok(gpio_pin_configure(gpio_dev, TEST_PIN, GPIO_INPUT | GPIO_ACTIVE_HIGH)); in ZTEST()
155 zassert_ok(gpio_add_callback(gpio_dev, &callback_struct)); in ZTEST()
156 zassert_ok(gpio_pin_interrupt_configure(gpio_dev, TEST_PIN, GPIO_INT_EDGE_TO_ACTIVE)); in ZTEST()
173 zassert_ok(gpio_pin_interrupt_configure(gpio_dev, TEST_PIN, GPIO_INT_MODE_DISABLED)); in ZTEST()
[all …]

12345678