Skip to content

Commit

Permalink
ostest:Ignore runtime error.
Browse files Browse the repository at this point in the history
wdog.c:190:3: runtime error: signed integer overflow: 9223372036854775807 + 1 cannot be represented in type 'long int'
    #0 0x40e35d3a in wdog_test_run /home/cuiziwei/ska/vela/vela-dev2/apps/testing/ostest/wdog.c:190
    #1 0x40e35e75 in wdog_test_thread /home/cuiziwei/ska/vela/vela-dev2/apps/testing/ostest/wdog.c:207
    apache#2 0x40773ffa in pthread_startup pthread/pthread_create.c:59
    apache#3 0x4495e037 in pthread_start pthread/pthread_create.c:139
    apache#4 0x40301864 in pre_start sim/sim_initialstate.c:52

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
  • Loading branch information
cuiziweizw authored and xiaoxiang781216 committed Oct 1, 2024
1 parent cc13d4b commit e13d37f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testing/ostest/wdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ static void wdog_test_run(FAR wdtest_param_t *param)

/* Delay wraparound (delay < 0) */

wdtest_assert(wd_start(&test_wdog, delay + 1,
delay = (sclock_t)((clock_t)delay + 1);
wdtest_assert(wd_start(&test_wdog, delay,
wdtest_callback, (wdparm_t)param) != OK);
wdtest_assert(wd_gettime(&test_wdog) == 0);

Expand Down

0 comments on commit e13d37f

Please sign in to comment.