File tree Expand file tree Collapse file tree 7 files changed +16
-66
lines changed Expand file tree Collapse file tree 7 files changed +16
-66
lines changed Original file line number Diff line number Diff line change 27
27
#include " utest.h"
28
28
#include < stdlib.h>
29
29
30
- #if !KVSTORE_ENABLED
31
- #error [NOT_SUPPORTED] KVStore needs to be enabled for this test
30
+ #if !defined(TARGET_K64F)
31
+ #error [NOT_SUPPORTED] Kvstore API tests run only on K64F devices
32
32
#endif
33
33
34
34
#define FSST_TEST_NUM_OF_THREADS 5
@@ -38,11 +38,7 @@ static const int heap_alloc_threshold_size = 4096;
38
38
using namespace utest ::v1;
39
39
using namespace mbed ;
40
40
41
- BlockDevice *bd = NULL ;
42
-
43
- #if defined(TARGET_K64F)
44
- bd = BlockDevice::get_default_instance();
45
- #endif
41
+ BlockDevice *bd = BlockDevice::get_default_instance();
46
42
47
43
typedef struct {
48
44
int thread_num;
Original file line number Diff line number Diff line change 26
26
#include " utest/utest.h"
27
27
#include " FileSystemStore.h"
28
28
29
- #if !KVSTORE_ENABLED
30
- #error [NOT_SUPPORTED] KVStore needs to be enabled for this test
31
- #endif
32
-
33
29
using namespace utest ::v1;
34
30
using namespace mbed ;
35
31
32
+ #if !defined(TARGET_K64F)
33
+ #error [NOT_SUPPORTED] Kvstore API tests run only on K64F devices
34
+ #endif
35
+
36
36
static const char data[] = " data" ;
37
37
static const char key[] = " key" ;
38
38
static char buffer[20 ] = {};
@@ -73,11 +73,6 @@ static const int heap_alloc_threshold_size = 4096;
73
73
// init the blockdevice
74
74
static void kvstore_init ()
75
75
{
76
-
77
- #if !defined(TARGET_K64F)
78
- TEST_SKIP_MESSAGE (" Kvstore API tests run only on K64F devices" );
79
- #endif
80
-
81
76
int res;
82
77
83
78
res = bd->init ();
Original file line number Diff line number Diff line change 26
26
#include " utest/utest.h"
27
27
#include " FileSystemStore.h"
28
28
29
- #if !KVSTORE_ENABLED
30
- #error [NOT_SUPPORTED] KVStore needs to be enabled for this test
31
- #endif
32
-
33
29
using namespace utest ::v1;
34
30
using namespace mbed ;
35
31
32
+ #if !defined(TARGET_K64F)
33
+ #error [NOT_SUPPORTED] Kvstore API tests run only on K64F devices
34
+ #endif
35
+
36
36
static const char data[] = " data" ;
37
37
static const char key[] = " key" ;
38
38
static char buffer[20 ] = {};
@@ -73,11 +73,6 @@ static const int heap_alloc_threshold_size = 4096;
73
73
// init the blockdevice
74
74
static void kvstore_init ()
75
75
{
76
-
77
- #if !defined(TARGET_K64F)
78
- TEST_SKIP_MESSAGE (" Kvstore API tests run only on K64F devices" );
79
- #endif
80
-
81
76
int res;
82
77
83
78
res = bd->init ();
Original file line number Diff line number Diff line change 34
34
#include < stdio.h>
35
35
#include < algorithm>
36
36
37
- #if !SECURESTORE_ENABLED || !KVSTORE_ENABLED
37
+ #if !defined(TARGET_K64F)
38
+ #error [NOT_SUPPORTED] Kvstore API tests run only on K64F devices
39
+ #endif
40
+
41
+ #if !SECURESTORE_ENABLED
38
42
#error [NOT_SUPPORTED] KVStore & SecureStore need to be enabled for this test
39
43
#endif
40
44
@@ -92,11 +96,6 @@ static const char *const key7_val1 = "7 is a lucky number";
92
96
93
97
static void white_box_test ()
94
98
{
95
-
96
- #if !defined(TARGET_K64F)
97
- TEST_SKIP_MESSAGE (" Kvstore API tests run only on K64F devices" );
98
- #endif
99
-
100
99
uint8_t get_buf[256 ];
101
100
size_t actual_data_size;
102
101
int result;
Original file line number Diff line number Diff line change 22
22
#include " utest/utest.h"
23
23
#include " kvstore_global_api.h"
24
24
25
- #if !KVSTORE_ENABLED
26
- #error [NOT_SUPPORTED] KVStore needs to be enabled for this test
27
- #endif
28
-
29
25
using namespace utest ::v1;
30
26
using namespace mbed ;
31
27
Original file line number Diff line number Diff line change 33
33
#include < stdio.h>
34
34
#include < algorithm>
35
35
36
- #if !KVSTORE_ENABLED
37
- #error [NOT_SUPPORTED] KVStore needs to be enabled for this test
38
- #endif
39
-
40
36
using namespace mbed ;
41
37
using namespace utest ::v1;
42
38
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments