v-liuchenxu3
8011a18ac2
clock_nanosleep:add retry mechanism for clock_nanosleep test
...
Sleep duration may vary due to scheduling overhead. Add 5-retry
loop and pass if at least 3 attempts succeed.
Signed-off-by: v-liuchenxu3 <v-liuchenxu3@xiaomi.com>
2026-04-20 15:20:24 +08:00
huojianchao
e6a0e8e6a8
testing/syscall: refactor gettimeofday test to handle g_basetime changes
...
Use CLOCK_MONOTONIC as reference to compare time deltas instead of
comparing absolute gettimeofday values. This avoids false failures
when g_basetime is adjusted by NTP or other time sync services.
- Compare time deltas between gettimeofday and CLOCK_MONOTONIC
- Allow limited basetime adjustments (max 3) before failing
- Fail immediately if CLOCK_MONOTONIC goes backwards
- Fail if gettimeofday delta exceeds CLOCK_MONOTONIC delta
Signed-off-by: huojianchao <huojianchao@xiaomi.com>
2026-04-20 15:20:24 +08:00
huojianchao
e73f7d44eb
return EBADF if ops not match with oflags
...
Signed-off-by: huojianchao <huojianchao@xiaomi.com>
2026-04-20 15:20:16 +08:00
huojianchao
a1584f1832
test_nuttx_syscall_fsync03 execute too long bugfix
...
Signed-off-by: huojianchao <huojianchao@xiaomi.com>
2026-04-20 15:19:52 +08:00
huojianchao
a1483389eb
test_nuttx_syscall_mkdir02 execute too long bugfix
...
Signed-off-by: huojianchao <huojianchao@xiaomi.com>
2026-04-20 15:19:52 +08:00
v-yanxingyu
43ff0e6978
"test_nuttx_syscall_getitimer01,test_nuttx_syscall_gettimeofday01,test_nuttx_syscall_timergettime01"
...
Add the "CONFIG_PREALLOC_TIMERS" judgment
Signed-off-by: v-yanxingyu <v-yanxingyu@xiaomi.com>
2026-04-20 15:19:49 +08:00
wushenhui
6dc4d1e161
tests: reduce syscall and sched test case execution time
...
The execution time of the modified test case has been reduced from 46.657s to 1.735s.
Signed-off-by: wushenhui <wushenhui@xiaomi.com>
2026-04-20 15:19:44 +08:00
guanyi3
762153cbd5
testsuites/mkdir&fsync_test: reduce test time
...
After lseek with a large offset, write() will be slow; if current file system is fatfs, write() will be even slower.
Signed-off-by: guanyi3 <guanyi3@xiaomi.com>
2026-04-20 15:19:42 +08:00
tengshuangshuang
87e4540cdd
syscall:fix listen case bug
...
UDP should not be tested without config_net_udp enabled
Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com>
2026-04-20 15:19:26 +08:00
zhaoxingyu1
77ed634420
testsuites/kernel/syscall: fix format errors in license
...
Signed-off-by: zhaoxingyu1 <zhaoxingyu1@xiaomi.com>
2026-04-20 15:19:20 +08:00
guohao15
fa7594fc1e
bugfix:fix misuse fd in testcase
...
Signed-off-by: guohao15 <guohao15@xiaomi.com>
2026-04-20 15:19:12 +08:00
guohao15
65a87d2be6
bugfix: skip test_nuttx_syscall_read02 when FDCHECK enable
...
Signed-off-by: guohao15 <guohao15@xiaomi.com>
2026-04-20 15:19:12 +08:00
tengshuangshuang
fdd91923f2
syscall:fix badfd cause the fdcheck error
...
Turning on fdcheck will cause the original test badfd case to dump
Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com>
2026-04-20 15:19:09 +08:00
tengshuangshuang
821ea178d5
apps/testing:fix syscall case(setsocketopt01, dup2_test, fsync_test) error
...
If fdcheck enabled, fd relative case will ASSERT, not able to check ret/errno etc.
Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com>
2026-04-20 15:19:09 +08:00
chenxiaoyi
938545cc7b
getTimeofday_test.c:68:22: error: variable 'cnt' set but not used [-Werror,-Wunused-but-set-variable]
...
Signed-off-by: chenxiaoyi <chenxiaoyi@xiaomi.com>
2026-04-20 15:19:07 +08:00
fangpeina
c3093aab4f
fix cmocka_syscall_test crash when CONFIG_FDCHECK enable
...
Signed-off-by: fangpeina <fangpeina@xiaomi.com>
2026-04-20 15:19:06 +08:00
buxiasen
cf0c1592de
kernel/syscall: fix required INET may case no support
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2026-04-20 15:19:05 +08:00
buxiasen
e869a224ab
test/syscall: sockettest01/02 should depends on CONFIG_NET_IPv4
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2026-04-20 15:19:02 +08:00
v-wangshihang
b50d595e30
tests:mv tests/testsuites apps/testing/testsuites from dev-upmerge-nuttx-12.7.1
...
Signed-off-by: v-wangshihang <v-wangshihang@xiaomi.com>
2026-04-20 15:18:59 +08:00