From: Jan Kiszka <
jan.k...@siemens.com>
test_environment does not trigger this path.
Signed-off-by: Jan Kiszka <
jan.k...@siemens.com>
---
tools/tests/Makefile | 2 +-
tools/tests/test_environment.c | 5 -----
2 files changed, 1 insertion(+), 6 deletions(-)
diff --git a/tools/tests/Makefile b/tools/tests/Makefile
index d52deaa..5a4bfd8 100644
--- a/tools/tests/Makefile
+++ b/tools/tests/Makefile
@@ -63,7 +63,7 @@ MOCKOBJS_test_api = bg_utils
# MOCKOBJS_SYMBOLS_objectname-targetname = symbolname1 symbolname2 ...
MOCKOBJS_SYMBOLS_bg_utils-test_partitions = probe_config_file
-MOCKOBJS_SYMBOLS_bg_utils-test_environment = oldenvs configparts fopen fclose fread fwrite feof mount_partition
+MOCKOBJS_SYMBOLS_bg_utils-test_environment = oldenvs configparts fopen fclose fread fwrite feof
MOCKOBJS_SYMBOLS_bg_utils-test_api = bgenv_init bgenv_write bgenv_close bgenv_get_latest bgenv_get_by_index bgenv_get_oldest
MOCKOBJS_SYMBOLS_ebgpart-test_partitions = ped_device_probe_all ped_device_get_next ped_disk_next_partition
diff --git a/tools/tests/test_environment.c b/tools/tests/test_environment.c
index fe9d50e..423eed0 100644
--- a/tools/tests/test_environment.c
+++ b/tools/tests/test_environment.c
@@ -27,11 +27,6 @@ BG_ENVDATA oldenvs[CONFIG_PARTITION_COUNT];
FILE test_file;
-bool mount_partition(CONFIG_PART *cfgpart)
-{
- return true;
-}
-
int feof(FILE *f)
{
return 0;
--
2.12.3