tests: do not use "sanity" word
Fix to align with guidelines regarding the use of inclusive language. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
6dca5be057
commit
f21f3b0d92
@ -54,7 +54,7 @@ static void thread_entry(void *p1, void *p2, void *p3)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ZTEST(hifi, test_register_sanity)
|
ZTEST(hifi, test_register_coherence)
|
||||||
{
|
{
|
||||||
int priority;
|
int priority;
|
||||||
uint32_t i;
|
uint32_t i;
|
||||||
|
|||||||
2
tests/boards/intel_adsp/cache/src/main.c
vendored
2
tests/boards/intel_adsp/cache/src/main.c
vendored
@ -18,7 +18,7 @@ ZTEST(adsp_cache, test_adsp_cache_flush_inv_all)
|
|||||||
*cached = 42;
|
*cached = 42;
|
||||||
*uncached = 40;
|
*uncached = 40;
|
||||||
|
|
||||||
/* Just some sanity checks */
|
/* Just some coherence checks */
|
||||||
zassert_equal(*cached, 42);
|
zassert_equal(*cached, 42);
|
||||||
zassert_equal(*uncached, 40);
|
zassert_equal(*uncached, 40);
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
#include <zephyr/ztest.h>
|
#include <zephyr/ztest.h>
|
||||||
#include <zephyr/drivers/mm/system_mm.h>
|
#include <zephyr/drivers/mm/system_mm.h>
|
||||||
|
|
||||||
ZTEST(sys_mm_drv_api, test_query_memory_region_sanity)
|
ZTEST(sys_mm_drv_api, test_query_memory_region_coherence)
|
||||||
{
|
{
|
||||||
const struct sys_mm_drv_region *regions, *region;
|
const struct sys_mm_drv_region *regions, *region;
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,7 @@ char __aligned(4) slab_buffer[8 * 4];
|
|||||||
stack_data_t stack_array[8 * 4];
|
stack_data_t stack_array[8 * 4];
|
||||||
int msgq_buffer[64];
|
int msgq_buffer[64];
|
||||||
|
|
||||||
ZTEST(obj_tracking, test_obj_tracking_sanity)
|
ZTEST(obj_tracking, test_obj_tracking_coherence)
|
||||||
{
|
{
|
||||||
struct k_timer timer;
|
struct k_timer timer;
|
||||||
struct k_mem_slab slab;
|
struct k_mem_slab slab;
|
||||||
|
|||||||
@ -6,7 +6,7 @@ minimal libc and newlib versions with printk, printf, and cbprintf.
|
|||||||
|
|
||||||
Footprint data can be obtained with:
|
Footprint data can be obtained with:
|
||||||
|
|
||||||
for f in sanity-out/*/tests/lib/cbprintf_fp/benchmark.cbprintf_fp.*/build.log ; do
|
for f in coherence-out/*/tests/lib/cbprintf_fp/benchmark.cbprintf_fp.*/build.log ; do
|
||||||
basename $(dirname $f)
|
basename $(dirname $f)
|
||||||
sed -n '/Memory/,/^\[/p' < $f
|
sed -n '/Memory/,/^\[/p' < $f
|
||||||
done
|
done
|
||||||
|
|||||||
@ -30,7 +30,7 @@ ZTEST(nanopb_tests, test_nanopb_simple)
|
|||||||
zassert_true(pb_encode(&ostream, SimpleMessage_fields, &msg),
|
zassert_true(pb_encode(&ostream, SimpleMessage_fields, &msg),
|
||||||
"Encoding failed: %s", PB_GET_ERROR(&ostream));
|
"Encoding failed: %s", PB_GET_ERROR(&ostream));
|
||||||
|
|
||||||
/* Sanity check, clear data */
|
/* Coherence check, clear data */
|
||||||
memset(&msg, 0, sizeof(SimpleMessage));
|
memset(&msg, 0, sizeof(SimpleMessage));
|
||||||
|
|
||||||
pb_istream_t istream = pb_istream_from_buffer(buffer, ostream.bytes_written);
|
pb_istream_t istream = pb_istream_from_buffer(buffer, ostream.bytes_written);
|
||||||
@ -57,7 +57,7 @@ ZTEST(nanopb_tests, test_nanopb_nested)
|
|||||||
zassert_true(pb_encode(&ostream, ComplexMessage_fields, &msg),
|
zassert_true(pb_encode(&ostream, ComplexMessage_fields, &msg),
|
||||||
"Encoding failed: %s", PB_GET_ERROR(&ostream));
|
"Encoding failed: %s", PB_GET_ERROR(&ostream));
|
||||||
|
|
||||||
/* Sanity check, clear data */
|
/* Coherence check, clear data */
|
||||||
memset(&msg, 0, sizeof(ComplexMessage));
|
memset(&msg, 0, sizeof(ComplexMessage));
|
||||||
|
|
||||||
pb_istream_t istream = pb_istream_from_buffer(buffer, ostream.bytes_written);
|
pb_istream_t istream = pb_istream_from_buffer(buffer, ostream.bytes_written);
|
||||||
|
|||||||
@ -188,7 +188,7 @@ static int get_ipv4_reply(struct net_if *iface,
|
|||||||
|
|
||||||
/* The code below should not be used in real life scenarios
|
/* The code below should not be used in real life scenarios
|
||||||
* as it is missing filling the ICMP params etc. We just create
|
* as it is missing filling the ICMP params etc. We just create
|
||||||
* a basic IPv4 header here in order to pass sanity checks
|
* a basic IPv4 header here in order to pass coherence checks
|
||||||
* in IP packet parsing.
|
* in IP packet parsing.
|
||||||
*/
|
*/
|
||||||
reply = net_pkt_alloc_with_buffer(iface, sizeof(struct net_ipv4_hdr) +
|
reply = net_pkt_alloc_with_buffer(iface, sizeof(struct net_ipv4_hdr) +
|
||||||
|
|||||||
@ -559,7 +559,7 @@ ZTEST_F(nvs, test_nvs_full_sector)
|
|||||||
len = nvs_write(&fixture->fs, filling_id, &filling_id, sizeof(filling_id));
|
len = nvs_write(&fixture->fs, filling_id, &filling_id, sizeof(filling_id));
|
||||||
zassert_true(len == sizeof(filling_id), "nvs_write failed: %d", len);
|
zassert_true(len == sizeof(filling_id), "nvs_write failed: %d", len);
|
||||||
|
|
||||||
/* sanitycheck on NVS content */
|
/* coherence check on NVS content */
|
||||||
for (i = 0; i <= filling_id; i++) {
|
for (i = 0; i <= filling_id; i++) {
|
||||||
len = nvs_read(&fixture->fs, i, &data_read, sizeof(data_read));
|
len = nvs_read(&fixture->fs, i, &data_read, sizeof(data_read));
|
||||||
if (i == 1) {
|
if (i == 1) {
|
||||||
|
|||||||
@ -487,7 +487,7 @@ ZTEST_F(zms, test_zms_full_sector)
|
|||||||
len = zms_write(&fixture->fs, filling_id, &filling_id, sizeof(filling_id));
|
len = zms_write(&fixture->fs, filling_id, &filling_id, sizeof(filling_id));
|
||||||
zassert_true(len == sizeof(filling_id), "zms_write failed: %d", len);
|
zassert_true(len == sizeof(filling_id), "zms_write failed: %d", len);
|
||||||
|
|
||||||
/* sanitycheck on ZMS content */
|
/* coherence check on ZMS content */
|
||||||
for (int i = 0; i <= filling_id; i++) {
|
for (int i = 0; i <= filling_id; i++) {
|
||||||
len = zms_read(&fixture->fs, i, &data_read, sizeof(data_read));
|
len = zms_read(&fixture->fs, i, &data_read, sizeof(data_read));
|
||||||
if (i == 1) {
|
if (i == 1) {
|
||||||
|
|||||||
@ -22,7 +22,7 @@ void pm_state_set(enum pm_state state, uint8_t substate_id)
|
|||||||
|
|
||||||
switch (sleep_count) {
|
switch (sleep_count) {
|
||||||
case 1:
|
case 1:
|
||||||
/* Just a sanity check that the system is the right state.
|
/* Just a coherence check that the system is the right state.
|
||||||
* Devices are suspended before SoC on PM_STATE_SUSPEND_TO_RAM, that is why
|
* Devices are suspended before SoC on PM_STATE_SUSPEND_TO_RAM, that is why
|
||||||
* we can check the device state here.
|
* we can check the device state here.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user