Commit b759b987 authored by Jamie McCrae's avatar Jamie McCrae Committed by Johan Hedberg
Browse files

tests: boot: mcuboot_data_sharing: Fix test



Fixes issues with test after the change was made to using swap
using offset

Signed-off-by: default avatarJamie McCrae <jamie.mccrae@nordicsemi.no>
parent 9f594610
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -50,13 +50,15 @@
			label = "mcuboot";
			reg = <0x00000000 0x00020000>;
		};

		slot0_partition: partition@20000 {
			label = "image-0";
			reg = <0x00020000 0x00022000>;
		};

		slot1_partition: partition@42000 {
			label = "image-1";
			reg = <0x00042000 0x00024000>;
			reg = <0x00042000 0x00023000>;
		};
	};
};
+2 −2
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@
#define FLASH_SECTOR_SIZE 1024
#define FLASH_SECTOR_SIZE_KB 4
#define FLASH_MAX_APP_SECTORS 34
#define FLASH_RESERVED_SECTORS 2
#define FLASH_RESERVED_SECTORS 1
#define FLASH_MAX_APP_SIZE ((FLASH_MAX_APP_SECTORS - FLASH_RESERVED_SECTORS) \
			    * FLASH_SECTOR_SIZE_KB)
#define RUNNING_SLOT 0
@@ -29,7 +29,7 @@ ZTEST(mcuboot_shared_data, test_mode)
	memset(var, 0xff, sizeof(var));
	rc = settings_runtime_get("blinfo/mode", var, sizeof(var));
	zassert_equal(rc, sizeof(var), "Expected data length mismatch");
	zassert_equal(var[0], MCUBOOT_MODE_SWAP_USING_MOVE, "Expected data mismatch");
	zassert_equal(var[0], MCUBOOT_MODE_SWAP_USING_OFFSET, "Expected data mismatch");
}

ZTEST(mcuboot_shared_data, test_signature_type)