Check that memory can't be shared in a few more cases.

Bug: 132420445
Change-Id: I898960d87f05bc90558b38b46b2da4d228a893f8
diff --git a/test/vmapi/primary_with_secondaries/memory_sharing.c b/test/vmapi/primary_with_secondaries/memory_sharing.c
index b0a44a7..108bbb9 100644
--- a/test/vmapi/primary_with_secondaries/memory_sharing.c
+++ b/test/vmapi/primary_with_secondaries/memory_sharing.c
@@ -847,6 +847,10 @@
 	EXPECT_EQ(run_res.func, SPCI_YIELD_32);
 
 	/* Fail to share memory again with any VM. */
+	spci_check_cannot_share_memory(mb, constituents,
+				       ARRAY_SIZE(constituents), -1);
+	spci_check_cannot_lend_memory(mb, constituents,
+				      ARRAY_SIZE(constituents), -1);
 	spci_check_cannot_donate_memory(mb, constituents,
 					ARRAY_SIZE(constituents), -1);
 	/* Fail to relinquish memory from any VM. */
@@ -1482,6 +1486,10 @@
 	run_res = spci_run(SERVICE_VM1, 0);
 	EXPECT_EQ(run_res.func, SPCI_YIELD_32);
 
+	/* Attempt to share the same area of memory. */
+	spci_check_cannot_share_memory(mb, constituents,
+				       ARRAY_SIZE(constituents), SERVICE_VM1);
+
 	/* Ensure we can't donate any sub section of memory to another VM. */
 	constituents[0].page_count = 1;
 	for (int i = 1; i < PAGE_SIZE * 2; i++) {