mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-14 06:04:19 +00:00
feat(rt/posix): Added FreeRTOS-Plus-POSIX message queues implementation
Note: The current mq_open() implementation is changed to match the POSIX standard.
This commit is contained in:
36
components/rt/test_apps/posix_rt_test/main/main.c
Normal file
36
components/rt/test_apps/posix_rt_test/main/main.c
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include "unity.h"
|
||||
#include "unity_test_runner.h"
|
||||
#include "unity_test_utils_memory.h"
|
||||
#include "esp_log.h"
|
||||
|
||||
static const char *TAG = "Linux_sim";
|
||||
|
||||
void setUp(void)
|
||||
{
|
||||
unity_utils_set_leak_level(0);
|
||||
unity_utils_record_free_mem();
|
||||
}
|
||||
|
||||
void tearDown(void)
|
||||
{
|
||||
unity_utils_evaluate_leaks();
|
||||
}
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
// The following code avoids memory leaks from initializing libc structures in clock_gettime() calls.
|
||||
struct timespec tp;
|
||||
clock_gettime(CLOCK_REALTIME, &tp);
|
||||
(void) tp;
|
||||
|
||||
ESP_LOGI(TAG, "Running FreeRTOS Linux test app");
|
||||
unity_run_menu();
|
||||
}
|
Reference in New Issue
Block a user