[rtems-schedsim commit] main_dump_all_cpus.c: Return error do not exit

Joel Sherrill joel at rtems.org
Fri May 23 21:40:59 UTC 2014


Module:    rtems-schedsim
Branch:    master
Commit:    1182d11704bf54666dc1383cecda7ebef33d6ddf
Changeset: http://git.rtems.org/rtems-schedsim/commit/?id=1182d11704bf54666dc1383cecda7ebef33d6ddf

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Fri May 23 16:28:22 2014 -0500

main_dump_all_cpus.c: Return error do not exit

---

 schedsim/shell/shared/main_dump_all_cpus.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/schedsim/shell/shared/main_dump_all_cpus.c b/schedsim/shell/shared/main_dump_all_cpus.c
index 2e1f108..4807e64 100644
--- a/schedsim/shell/shared/main_dump_all_cpus.c
+++ b/schedsim/shell/shared/main_dump_all_cpus.c
@@ -81,7 +81,7 @@ int main_dump_all_cpus(int argc, char **argv)
           "*** ERROR in scenario -- unknown task %s\n",
            argv[cpu + 1]
         );
-        exit( 1 );
+        return 1;
       }
 
       if ( e->Object.id != id ) {
@@ -97,7 +97,7 @@ int main_dump_all_cpus(int argc, char **argv)
   }
   if ( mismatch ) {
     printf( "Exiting test scenario due to scheduling failure\n" );
-    exit( 1 );
+    return 1;
   }
 
   return 0;




More information about the vc mailing list