[PATCH 03/15] Revert "test: smem: add basic smem test"
Caleb Connolly
caleb.connolly at linaro.org
Sun Nov 24 20:17:45 CET 2024
This reverts commit 20e7705764c4e5ea924f1ea54bb36ebbbeffffe7.
---
test/dm/Makefile | 1 -
test/dm/smem.c | 26 --------------------------
2 files changed, 27 deletions(-)
diff --git a/test/dm/Makefile b/test/dm/Makefile
index bcb52ef1067b..c7511d072716 100644
--- a/test/dm/Makefile
+++ b/test/dm/Makefile
@@ -111,9 +111,8 @@ obj-$(CONFIG_SCSI) += scsi.o
obj-$(CONFIG_DM_SERIAL) += serial.o
obj-$(CONFIG_DM_SPI_FLASH) += sf.o
obj-$(CONFIG_SIMPLE_BUS) += simple-bus.o
obj-$(CONFIG_SIMPLE_PM_BUS) += simple-pm-bus.o
-obj-$(CONFIG_SMEM) += smem.o
obj-$(CONFIG_SOC_DEVICE) += soc.o
obj-$(CONFIG_SOUND) += sound.o
obj-$(CONFIG_DM_SPI) += spi.o
obj-$(CONFIG_SPMI) += spmi.o
diff --git a/test/dm/smem.c b/test/dm/smem.c
deleted file mode 100644
index 89e74cccc574..000000000000
--- a/test/dm/smem.c
+++ /dev/null
@@ -1,26 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright (C) 2018 Ramon Fried <ramon.fried at gmail.com>
- */
-
-#include <dm.h>
-#include <smem.h>
-#include <dm/test.h>
-#include <test/test.h>
-#include <test/ut.h>
-
-/* Basic test of the smem uclass */
-static int dm_test_smem_base(struct unit_test_state *uts)
-{
- struct udevice *dev;
- size_t size;
-
- ut_assertok(uclass_get_device(UCLASS_SMEM, 0, &dev));
- ut_assertnonnull(dev);
- ut_assertok(smem_alloc(dev, -1, 0, 16));
- ut_asserteq(0, smem_get_free_space(dev, -1));
- ut_assertnull(smem_get(dev, -1, 0, &size));
-
- return 0;
-}
-DM_TEST(dm_test_smem_base, UTF_SCAN_PDATA | UTF_SCAN_FDT);
--
2.47.0
More information about the U-Boot
mailing list