Changeset 640 in openpam


Ignore:
Timestamp:
Mar 4, 2013, 10:38:45 AM (8 years ago)
Author:
Dag-Erling Smørgrav
Message:

If setlogmask(3) is available, suppress logging during tests.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r639 r640  
    9393AC_CHECK_FUNCS([fdlopen])
    9494AC_CHECK_FUNCS([fpurge])
     95AC_CHECK_FUNCS([setlogmask])
    9596AC_CHECK_FUNCS([strlcat strlcmp strlcpy])
    9697
  • trunk/t/t_main.c

    r632 r640  
    3939#include <stdlib.h>
    4040#include <string.h>
     41#include <syslog.h>
    4142#include <unistd.h>
    4243
     
    7576        int opt;
    7677
     78#ifdef HAVE_SETLOGMASK
     79        /* suppress openpam_log() */
     80        setlogmask(LOG_UPTO(0));
     81#endif
     82
     83        /* clean up temp files in case of premature exit */
    7784        atexit(t_fcloseall);
    7885
Note: See TracChangeset for help on using the changeset viewer.