r8342@foo: jon | 2006-12-16 02:49:32 -0600
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Fork.pm
index b6992ab..68b2c63 100644 (file)
@@ -15,14 +15,13 @@ sub system : Local {
 
     if(!-e $ls || !-x _){ 
        $result = 'skip';
-       $code = 0;
     }
     else {
-       $result = system($ls, $ls, $ls) || $!;
-       $code = $?;
+       $result = system($ls, $ls, $ls);
+       $result = $! if $result != 0;
     }
     
-    $c->response->body(Dump({result => $result, code => $code}));
+    $c->response->body(Dump({result => $result}));
 }
 
 sub backticks : Local {