Skip to content

QA - pcntl_setpriority() - adjust error/code coverage #8994

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

Conversation

juan-morales
Copy link
Contributor

I changed the existing test that checks for errors on the pcntl_setpriority() function.

Extension: pcntl
Function: pcntl_setpriority

Also code coverage was improved.

Before
image

After
image

@juan-morales
Copy link
Contributor Author

Fails in Mac like:

image

but the test is catching the error supposely:

image

Other tests (in other PULL REQUESTS) are having the same behavior too.

Need support

@juan-morales
Copy link
Contributor Author

For FreeBSD ... seems that tests are running with root user?

image

In my test I wanted to cover the:
"Warning: pcntl_setpriority(): Error 1: A process was located, but neither its effective nor real user ID matched the effective user ID of the caller in %s"

That is why I usd PID = 1, which in Linux at least always belongs to root-system process

Should I SKIP if OS is not FreeBSD ?

@arnaud-lb arnaud-lb requested a review from devnexen July 15, 2022 10:54
@juan-morales
Copy link
Contributor Author

As I wrote in #8993 ... I Will have a PR for this soon.

@juan-morales
Copy link
Contributor Author

will be fix in another PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant