[gnome-remote-desktop] tests/rdp: Add additional debug messages to RDP test



commit e7b0d50a4d203a2754a472932754bdfbf7d44bd1
Author: Pascal Nowack <Pascal Nowack gmx de>
Date:   Fri May 6 15:55:12 2022 +0200

    tests/rdp: Add additional debug messages to RDP test
    
    This should make finding errors easier.

 tests/test-client-rdp.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/tests/test-client-rdp.c b/tests/test-client-rdp.c
index 91f88489..788ad6db 100644
--- a/tests/test-client-rdp.c
+++ b/tests/test-client-rdp.c
@@ -345,6 +345,7 @@ run_main_loop (rdpContext *rdp_context)
   HANDLE events[64];
   uint32_t n_events;
   uint32_t n_freerdp_handles;
+  gboolean result;
 
   rdp_peer_context->test_state = TEST_STATE_TEST_1;
 
@@ -388,7 +389,10 @@ run_main_loop (rdpContext *rdp_context)
         }
     }
 
-  return rdp_peer_context->test_state == TEST_STATE_TESTS_COMPLETE;
+  result = rdp_peer_context->test_state == TEST_STATE_TESTS_COMPLETE;
+  g_debug ("Main loop tests complete: %i", result);
+
+  return result;
 }
 
 int
@@ -429,6 +433,8 @@ main (int    argc,
 
   freerdp_client_context_free (rdp_context);
 
+  g_debug ("Client context freed. Exiting test with result: %i", success);
+
   if (success)
     return 0;
 


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