Skip to content

Commit 6f126f6

Browse files
author
Seppo Takalo
committed
Small fixes for typos and missing delete.
1 parent 8068dcb commit 6f126f6

File tree

2 files changed

+3
-3
lines changed
  • UNITTESTS
    • features/storage/blockdevice/HeapBlockDevice
    • moduletests/storage/blockdevice/SlicingBlockDevice

2 files changed

+3
-3
lines changed

UNITTESTS/features/storage/blockdevice/HeapBlockDevice/test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "gtest/gtest.h"
22
#include "features/storage/blockdevice/HeapBlockDevice.h"
3-
#include "string.h"
3+
#include <string.h>
44
#include "mbed_assert.h"
55

66
#define BLOCK_SIZE (512)
@@ -61,7 +61,7 @@ TEST_F(HeapBlockDeviceTest, erase_program_read)
6161
delete[] buf;
6262
}
6363

64-
TEST_F(HeapBlockDeviceTest, use_uninitalized)
64+
TEST_F(HeapBlockDeviceTest, use_uninitialized)
6565
{
6666
mbed::HeapBlockDevice one{DEVICE_SIZE};
6767
uint8_t *buf = new uint8_t[BLOCK_SIZE];

UNITTESTS/moduletests/storage/blockdevice/SlicingBlockDevice/moduletest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,5 +141,5 @@ TEST_F(SlicingBlockModuleTest, over_write)
141141
EXPECT_EQ(slice.program(program, BLOCK_SIZE, BLOCK_SIZE), BD_ERROR_OK);
142142
//Program a test value to address that is one pass the device size
143143
EXPECT_EQ(slice.program(program, 2 * BLOCK_SIZE, BLOCK_SIZE), BD_ERROR_DEVICE_ERROR);
144-
144+
delete[] program;
145145
}

0 commit comments

Comments
 (0)