[retro-gtk] tests: Make the dummy core successfully load games



commit f65cfa3887763cb8dd63989383828a2a7165ce80
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sun Aug 1 10:31:33 2021 +0200

    tests: Make the dummy core successfully load games
    
    This is needed for the tests to pass when we will corresctly support
    game loading failure as expected by Libretro.

 tests/retro-dummy.c | 4 ++--
 tests/test-core.c   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/retro-dummy.c b/tests/retro-dummy.c
index 23ab5d6..814c0df 100644
--- a/tests/retro-dummy.c
+++ b/tests/retro-dummy.c
@@ -137,7 +137,7 @@ retro_run (void)
 bool
 retro_load_game (const struct retro_game_info *info)
 {
-  return false;
+  return true;
 }
 
 void
@@ -156,7 +156,7 @@ retro_load_game_special (unsigned                      type,
                          const struct retro_game_info *info,
                          size_t                        num)
 {
-  return false;
+  return true;
 }
 
 size_t
diff --git a/tests/test-core.c b/tests/test-core.c
index fd23f1e..a3ec7f6 100644
--- a/tests/test-core.c
+++ b/tests/test-core.c
@@ -127,7 +127,7 @@ test_get_game_loaded (RetroCore     **core_pointer,
   retro_core_boot (core, &error);
   g_assert_no_error (error);
 
-  g_assert_false (retro_core_get_game_loaded (core));
+  g_assert_true (retro_core_get_game_loaded (core));
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]