| 1234567891011121314151617181920 |
- #include <stdio.h>
- #include <string.h>
- #include <furi.h>
- #include "minunit.h"
- void test_furi_create_open() {
- // 1. Create record
- uint8_t test_data = 0;
- furi_record_create("test/holding", (void*)&test_data);
- // 2. Open it
- void* record = furi_record_open("test/holding");
- mu_assert_pointers_eq(record, &test_data);
- // 3. Close it
- furi_record_close("test/holding");
- // 4. Clean up
- furi_record_destroy("test/holding");
- }
|