summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-05-23 16:28:22 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-05-23 16:46:49 -0500
commit1182d11704bf54666dc1383cecda7ebef33d6ddf (patch)
tree6516f5ffaa2abf943fce8d5a5978a2245089a732
parent44cf36b76f2d159158a0f6a0d03fa34fff45a2c5 (diff)
main_dump_all_cpus.c: Return error do not exit
-rw-r--r--schedsim/shell/shared/main_dump_all_cpus.c4
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;