fix build warning for kernel testsuites
Signed-off-by: vela-mib <vela-mib@xiaomi.com>
This commit is contained in:
parent
f4092962df
commit
74cf82f995
@ -47,7 +47,7 @@ __attribute__((unused)) static void *thread_func(void *args)
|
|||||||
eventfd_t eventfd01_buffer;
|
eventfd_t eventfd01_buffer;
|
||||||
for (int i = 1; i < 6; i++)
|
for (int i = 1; i < 6; i++)
|
||||||
{
|
{
|
||||||
read((int)args, &eventfd01_buffer, sizeof(eventfd_t));
|
read(*(int *)args, &eventfd01_buffer, sizeof(eventfd_t));
|
||||||
sleep(1);
|
sleep(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ void test_nuttx_fs_fsync02(FAR void **state)
|
|||||||
|
|
||||||
bufsize = statfsbuf.f_bsize;
|
bufsize = statfsbuf.f_bsize;
|
||||||
|
|
||||||
syslog(LOG_INFO, "the bsize = %d\n", statfsbuf.f_bsize);
|
syslog(LOG_INFO, "the bsize = %ld\n", statfsbuf.f_bsize);
|
||||||
|
|
||||||
/* malloc memory */
|
/* malloc memory */
|
||||||
|
|
||||||
|
@ -267,7 +267,7 @@ void test_nuttx_fs_stream03(FAR void **state)
|
|||||||
if ((size_t)ret != len)
|
if ((size_t)ret != len)
|
||||||
{
|
{
|
||||||
syslog(LOG_ERR,
|
syslog(LOG_ERR,
|
||||||
"len = %zi != return value from fwrite = %zi",
|
"len = %zi != return value from fwrite = %i",
|
||||||
len, ret);
|
len, ret);
|
||||||
fclose(stream);
|
fclose(stream);
|
||||||
assert_true(1 == 0);
|
assert_true(1 == 0);
|
||||||
@ -300,7 +300,7 @@ void test_nuttx_fs_stream03(FAR void **state)
|
|||||||
if ((size_t)ret != len)
|
if ((size_t)ret != len)
|
||||||
{
|
{
|
||||||
syslog(LOG_ERR,
|
syslog(LOG_ERR,
|
||||||
"len = %zi != return value from fread = %zi",
|
"len = %zi != return value from fread = %i",
|
||||||
len, ret);
|
len, ret);
|
||||||
free(inbuf);
|
free(inbuf);
|
||||||
fclose(stream);
|
fclose(stream);
|
||||||
|
@ -123,7 +123,7 @@ void test_nuttx_clock_test_timer03(FAR void **state)
|
|||||||
/* 20000000, 2 ticks. */
|
/* 20000000, 2 ticks. */
|
||||||
|
|
||||||
failed += (escaped < expected || (escaped - expected) >= 20000000);
|
failed += (escaped < expected || (escaped - expected) >= 20000000);
|
||||||
syslog(LOG_INFO, "expected = %lld escaped = %lld failed = %d",
|
syslog(LOG_INFO, "expected = %ld escaped = %ld failed = %d",
|
||||||
expected, escaped, failed);
|
expected, escaped, failed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user