mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/timer_order_ut' into 'master'
esp_timer: fix "esp_timer orders timers correctly" header line handling See merge request espressif/esp-idf!12402
This commit is contained in:
commit
abebaca884
@ -87,8 +87,13 @@ TEST_CASE("esp_timer orders timers correctly", "[esp_timer]")
|
|||||||
}
|
}
|
||||||
fflush(stream);
|
fflush(stream);
|
||||||
fseek(stream, 0, SEEK_SET);
|
fseek(stream, 0, SEEK_SET);
|
||||||
|
|
||||||
|
/* Discard header lines */
|
||||||
|
char line[128];
|
||||||
|
TEST_ASSERT_NOT_NULL(fgets(line, sizeof(line), stream));
|
||||||
|
TEST_ASSERT_NOT_NULL(fgets(line, sizeof(line), stream));
|
||||||
|
|
||||||
for (size_t i = 0; i < num_timers; ++i) {
|
for (size_t i = 0; i < num_timers; ++i) {
|
||||||
char line[128];
|
|
||||||
TEST_ASSERT_NOT_NULL(fgets(line, sizeof(line), stream));
|
TEST_ASSERT_NOT_NULL(fgets(line, sizeof(line), stream));
|
||||||
#if WITH_PROFILING
|
#if WITH_PROFILING
|
||||||
int timer_id;
|
int timer_id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user