kopia lustrzana https://github.com/espressif/esp-idf
newlib: Fix test_posix_timers_clock for esp32s2beta
rodzic
bcaaaa1632
commit
a25841bc9a
|
@ -330,11 +330,11 @@ TEST_CASE("test time adjustment happens linearly", "[newlib][timeout=35]")
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined( CONFIG_ESP32_TIME_SYSCALL_USE_RTC ) || defined( CONFIG_ESP32_TIME_SYSCALL_USE_RTC_FRC1 )
|
#if defined( CONFIG_ESP32_TIME_SYSCALL_USE_RTC ) || defined( CONFIG_ESP32_TIME_SYSCALL_USE_RTC_FRC1 ) || defined( CONFIG_ESP32S2_TIME_SYSCALL_USE_RTC ) || defined( CONFIG_ESP32S2_TIME_SYSCALL_USE_RTC_FRC1 )
|
||||||
#define WITH_RTC 1
|
#define WITH_RTC 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined( CONFIG_ESP32_TIME_SYSCALL_USE_FRC1 ) || defined( CONFIG_ESP32_TIME_SYSCALL_USE_RTC_FRC1 )
|
#if defined( CONFIG_ESP32_TIME_SYSCALL_USE_FRC1 ) || defined( CONFIG_ESP32_TIME_SYSCALL_USE_RTC_FRC1 ) || defined( CONFIG_ESP32S2_TIME_SYSCALL_USE_FRC1 ) || defined( CONFIG_ESP32S2_TIME_SYSCALL_USE_RTC_FRC1 )
|
||||||
#define WITH_FRC 1
|
#define WITH_FRC 1
|
||||||
#endif
|
#endif
|
||||||
void test_posix_timers_clock (void)
|
void test_posix_timers_clock (void)
|
||||||
|
@ -430,7 +430,7 @@ void test_posix_timers_clock (void)
|
||||||
#endif // defined( WITH_FRC ) || defined( WITH_RTC )
|
#endif // defined( WITH_FRC ) || defined( WITH_RTC )
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE_ESP32("test posix_timers clock_... functions", "[newlib]")
|
TEST_CASE("test posix_timers clock_... functions", "[newlib]")
|
||||||
{
|
{
|
||||||
test_posix_timers_clock();
|
test_posix_timers_clock();
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue