mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 03:34:32 +02:00
newlib: Fix test_posix_timers_clock for esp32s2beta
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user