Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process: add method to test for failure based on exitcode #182

Open
stdweird opened this issue Aug 9, 2016 · 0 comments
Open

Process: add method to test for failure based on exitcode #182

stdweird opened this issue Aug 9, 2016 · 0 comments

Comments

@stdweird
Copy link
Member

stdweird commented Aug 9, 2016

most code does a simple if($?) after CAF:Process; but there is code (like ncm-download) that uses more leborate check

...
$proc->execute();
if (!POSIX::WIFEXITED($?) || POSIX::WEXITSTATUS($?) != 0) {
    $self->error("could not get GSSAPI credentials: $errs");                              
    return 0;
}

figure out what the best way is to check for success (maybe redefine $? based on above checks), and also add it as a new method.

@stdweird stdweird changed the title Prorcess: add method to test for failure based on exitcode Process: add method to test for failure based on exitcode Aug 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant