Skip to content

Commit 6d7f6d5

Browse files
authored
Merge pull request #83 from chetansinghrathore/master
Test#14: Fixed the length of read and write buffer
2 parents 60143e3 + bb9eb2a commit 6d7f6d5

File tree

1 file changed

+2
-2
lines changed
  • api-tests/dev_apis/protected_storage/test_p014

1 file changed

+2
-2
lines changed

api-tests/dev_apis/protected_storage/test_p014/test_p014.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static int32_t psa_sst_optional_api_not_supported()
4848

4949
/* Create a valid storage using set API */
5050
val->print(PRINT_TEST, "[Check 2] Create valid storage with set API\n", 0);
51-
status = SST_FUNCTION(p014_data[3].api, p_uid, TEST_BUFF_SIZE, write_buff, 0);
51+
status = SST_FUNCTION(p014_data[3].api, p_uid, TEST_BUFF_SIZE/4, write_buff, 0);
5252
TEST_ASSERT_EQUAL(status, p014_data[3].status, TEST_CHECKPOINT_NUM(3));
5353

5454
/* Partial data write with set_extended API should fail */
@@ -58,7 +58,7 @@ static int32_t psa_sst_optional_api_not_supported()
5858

5959
/* Call the get function to match the data */
6060
val->print(PRINT_TEST, "[Check 4] Verify data is unchanged\n", 0);
61-
status = SST_FUNCTION(p014_data[5].api, p_uid, 0, TEST_BUFF_SIZE, read_buff);
61+
status = SST_FUNCTION(p014_data[5].api, p_uid, 0, TEST_BUFF_SIZE/4, read_buff);
6262
TEST_ASSERT_EQUAL(status, p014_data[5].status, TEST_CHECKPOINT_NUM(5));
6363
TEST_ASSERT_MEMCMP(read_buff, write_buff, TEST_BUFF_SIZE/4, TEST_CHECKPOINT_NUM(6));
6464

0 commit comments

Comments
 (0)