#include <oic_malloc.h>
const char SENTINEL_VALUE = 127;
+static const char SENTINEL_CHAR = '?';
+
TEST(StringTests, StrdupNormalDup)
{
char param[] = "This is a normal parameter";
// tests a copy where the destination is of length 0
TEST(StringTests, StrcpyZeroDestination)
{
- char target[1] = { (char)0xde };
+ char target[1] = { SENTINEL_CHAR };
char source[] = "123456789";
char beforeValue = target[0];
// Tests a cat where the Destination is zero length
TEST(StringTests, StrcatZeroDestination)
{
- char target[1] = { (char)0xde };
+ char target[1] = { SENTINEL_CHAR };
char source[] = "12345";
char beforeValue = target[0];