[1/1] testsuite, threads: add missing return statements

Message ID 20241129162802.1216434-2-stephan.rohr@intel.com
State New
Headers
Series gdb, testsuite: add missing return statements |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_gdb_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_gdb_check--master-arm success Test passed
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 success Test passed

Commit Message

Rohr, Stephan Nov. 29, 2024, 4:28 p.m. UTC
  From: "Rohr, Stephan" <stephan.rohr@intel.com>

Add missing return statements in
  gdb.threads/process-exit-status-is-leader-exit-status.c
and
  gdb.threads/next-fork-exec-other-thread.c
---
 gdb/testsuite/gdb.threads/next-fork-exec-other-thread.c       | 4 ++++
 .../gdb.threads/process-exit-status-is-leader-exit-status.c   | 1 +
 2 files changed, 5 insertions(+)
  

Patch

diff --git a/gdb/testsuite/gdb.threads/next-fork-exec-other-thread.c b/gdb/testsuite/gdb.threads/next-fork-exec-other-thread.c
index 0645b551e67..7694a894bef 100644
--- a/gdb/testsuite/gdb.threads/next-fork-exec-other-thread.c
+++ b/gdb/testsuite/gdb.threads/next-fork-exec-other-thread.c
@@ -50,6 +50,8 @@  worker_a (void *pArg)
       waitpid (pid, NULL, 0);
       usleep (5);
     }
+
+  return NULL;
 }
 
 static void*
@@ -61,6 +63,8 @@  worker_b (void *pArg)
       usleep (5);  /* break here */
       usleep (5);  /* other line */
     }
+
+  return NULL;
 }
 
 int
diff --git a/gdb/testsuite/gdb.threads/process-exit-status-is-leader-exit-status.c b/gdb/testsuite/gdb.threads/process-exit-status-is-leader-exit-status.c
index 3fed562bd86..bd998f990a1 100644
--- a/gdb/testsuite/gdb.threads/process-exit-status-is-leader-exit-status.c
+++ b/gdb/testsuite/gdb.threads/process-exit-status-is-leader-exit-status.c
@@ -43,6 +43,7 @@  start (void *arg)
   int thread_return_value = *(int *) arg;
 
   do_exit (thread_return_value);
+  return NULL;
 }
 
 int