Open KishokG opened 1 day ago
@KishokG That does not look like a valid test: more memory could have been allocated between step 4 and step 5, so heap used might be larger than the old high watermark value. The only valid way to test this is to read heap used first, then read the watermark and make sure the watermark is no less than the used value that was already seen.
Reproduction steps
./chip-tool softwarediagnostics read current-heap-high-watermark 1 0
.DUT Response:
./chip-tool softwarediagnostics read current-heap-used 1 0
.Expected DUT Response: CurrentHeapUsed value is less than or equal to CurrentHeapHighWatermark value.
Actual DUT Response:
Bug prevalence
Whenever I try to read CurrentHeapUsed.
GitHub hash of the SDK that was being used
17b1a38e909e7874593bcb87c31be03a5866f1d4
Platform
raspi
Platform Version(s)
RPI - 4, 8GB RAM
Anything else?
Log file: TC-DGSW-2.3.txt
Test Plan Reference: https://github.com/CHIP-Specifications/chip-test-plans/blob/master/src/cluster/software_diagnostics.adoc Specification Reference: https://github.com/CHIP-Specifications/connectedhomeip-spec/blob/master/src/service_device_management/DiagnosticsSoftware.adoc#ref_SoftwareResetWatermarks