mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-30 06:33:07 +00:00
05ef19b07a
* fixed inline functions for modern C standart * pubsub api, base version * basic test for pubsub * update applications.mk, add test file * more test for pubsub * remove unimplemented files, cleanup header file * remove legacy tests, check unsubscribe not call cb * implement deleting mutex, fail test * release mutex before deleting Co-authored-by: aanper <mail@s3f.ru>
16 lines
381 B
C
16 lines
381 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
#include "flipper.h"
|
|
#include "flipper_v2.h"
|
|
#include "log.h"
|
|
#include "minunit.h"
|
|
|
|
void test_furi_create_open() {
|
|
// 1. Create record
|
|
uint8_t test_data = 0;
|
|
mu_check(furi_create("test/holding", (void*)&test_data));
|
|
|
|
// 2. Open it
|
|
void* record = furi_open("test/holding");
|
|
mu_assert_pointers_eq(record, &test_data);
|
|
}
|