Skip to content

Commit f71afd7

Browse files
author
Rohit Grover
committed
in the synchronous case, replace checks with more stringent assertions
1 parent 139e0f5 commit f71afd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TESTS/storage_abstraction/basicAPI/basicAPI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ control_t test_programDataUsingProgramUnit(const size_t call_count)
372372
TEST_ASSERT_EQUAL(1, capabilities.asynchronous_ops);
373373
return (call_count < REPEAT_INSTANCES) ? CaseTimeout(200) + CaseRepeatAll: CaseTimeout(200);
374374
} else {
375-
TEST_ASSERT(rc > 0);
375+
TEST_ASSERT_EQUAL(firstBlock.attributes.erase_unit, rc);
376376

377377
/* program the sector at addr */
378378
// printf("programming %u bytes at address %lu with pattern 0x%" PRIx32 "\n", sizeofData, (uint32_t)addr, BYTE_PATTERN);
@@ -496,7 +496,7 @@ control_t test_programDataUsingOptimalProgramUnit(const size_t call_count)
496496
TEST_ASSERT_EQUAL(1, capabilities.asynchronous_ops);
497497
return (call_count < REPEAT_INSTANCES) ? CaseTimeout(200) + CaseRepeatAll: CaseTimeout(200);
498498
} else {
499-
TEST_ASSERT(rc > 0);
499+
TEST_ASSERT_EQUAL(sizeofData, rc);
500500

501501
printf("verifying programmed sector at addr %lu\n", (uint32_t)addr);
502502
verifyBytePattern(addr, sizeofData, BYTE_PATTERN);

0 commit comments

Comments
 (0)