diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2007-09-27 10:22:06 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2007-09-27 10:22:06 +0000 |
commit | e83bead09f35a7f3024ec7390394326e89b00315 (patch) | |
tree | 8323ea8b264fb19d1bc1f3dc107ebb3fec7bec3b /xtests/tst-pam_limits1.c | |
parent | 04171b8d2b2fbc2c216a427c3b60aabc9725ebc2 (diff) | |
download | pam-e83bead09f35a7f3024ec7390394326e89b00315.tar.gz pam-e83bead09f35a7f3024ec7390394326e89b00315.tar.bz2 pam-e83bead09f35a7f3024ec7390394326e89b00315.zip |
Relevant BUGIDs:
Purpose of commit: bugfix
Commit summary:
---------------
2007-09-27 Thorsten Kukuk <kukuk@thkukuk.de>
* xtests/run-xtests.sh: Add support to skip tests.
* xtests/tst-pam_limits1.c: Skip test if RLIMIT_NICE is not
defined.
Diffstat (limited to 'xtests/tst-pam_limits1.c')
-rw-r--r-- | xtests/tst-pam_limits1.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xtests/tst-pam_limits1.c b/xtests/tst-pam_limits1.c index cf025d3d..ed3d3679 100644 --- a/xtests/tst-pam_limits1.c +++ b/xtests/tst-pam_limits1.c @@ -98,6 +98,7 @@ main(int argc, char *argv[]) if (argc > 1 && strcmp (argv[1], "-d") == 0) debug = 1; +#ifdef RLIMIT_NICE retval = pam_start("tst-pam_limits1", user, &conv, &pamh); if (retval != PAM_SUCCESS) { @@ -145,4 +146,10 @@ main(int argc, char *argv[]) return 1; } return 0; +#else + if (debug) + fprintf (stderr, "pam_limits1: RLIMIT_NICE does not exist)\n"); + + return 77; +#endif } |