From: Jan Kiszka <[email protected]>

test_environment does not trigger this path.

Signed-off-by: Jan Kiszka <[email protected]>
---
 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

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/f5536a0897b411526c159cb94010944182ad5bfc.1506284412.git.jan.kiszka%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to