Skip to content

Commit

Permalink
openposix/.../sched_getscheduler/7-1: Fix.
Browse files Browse the repository at this point in the history
Return UNTESTED for failed optional behavior.

Signed-off-by: Cyril Hrubis <[email protected]>
  • Loading branch information
metan-ucw committed Apr 17, 2013
1 parent 6d669cc commit 4f2ab13
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#include <string.h>
#include "posixtest.h"

/** Set the euid of this process to a non-root uid */
int set_nonroot()
/* Set the euid of this process to a non-root uid */
int set_nonroot(void)
{
struct passwd *pw;
setpwent();
Expand Down Expand Up @@ -74,7 +74,7 @@ int main(void)
}
if (result == 0) {
printf("The function sched_getscheduler has successed.\n");
return PTS_UNRESOLVED;
return PTS_UNTESTED;
}
if (errno != EPERM) {
perror("errno is not EPERM");
Expand Down

0 comments on commit 4f2ab13

Please sign in to comment.