[Lsb-messages] /var/www/bzr/lsb/devel/devchk r2391: pam reorg and additions (bug 3264)

Mats Wichmann mats at linuxfoundation.org
Thu Jan 9 19:09:06 UTC 2014


------------------------------------------------------------
revno: 2391
committer: Mats Wichmann <mats at linuxfoundation.org>
branch nick: devchk
timestamp: Thu 2014-01-09 12:09:06 -0700
message:
  pam reorg and additions (bug 3264)
added:
  ts/devchk/security_pam_modules_h.c
-------------- next part --------------
=== added file 'ts/devchk/security_pam_modules_h.c'
--- a/ts/devchk/security_pam_modules_h.c	1970-01-01 00:00:00 +0000
+++ b/ts/devchk/security_pam_modules_h.c	2014-01-09 19:09:06 +0000
@@ -0,0 +1,49 @@
+/*
+ * Test of security/pam_modules.h - generated file, do not edit
+ */
+#include "hdrchk.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/types.h>
+#define _LSB_DEFAULT_ARCH 1
+#include "security/pam_modules.h"
+
+
+
+#ifdef TET_TEST
+void security_pam_modules_h()
+{
+#else
+int security_pam_modules_h()
+{
+#endif
+
+int cnt=0;
+
+int pcnt=0;
+char *real_macro_value, *stripped_macro_value;
+int macro_ndx, stripped_value_ndx;
+real_macro_value=(char*)malloc( (MAX_VALUE_LENGTH+1)*sizeof(char) );
+stripped_macro_value=(char*)malloc( (MAX_VALUE_LENGTH+1)*sizeof(char) );
+
+Msg("Checking data structures in security/pam_modules.h\n");
+extern int pam_set_data_db(pam_handle_t *, const char *, void *, void(*fptr0)(pam_handle_t *,void *,int)
+);
+CheckInterfacedef(pam_set_data,pam_set_data_db);
+extern int pam_get_data_db(const pam_handle_t *, const char *, const void * *);
+CheckInterfacedef(pam_get_data,pam_get_data_db);
+extern int pam_get_user_db(pam_handle_t *, const char * *, const char *);
+CheckInterfacedef(pam_get_user,pam_get_user_db);
+#ifdef TET_TEST
+if (pcnt == cnt )
+	tet_result(TET_PASS);
+else
+	tet_result(TET_FAIL);
+return;
+#else
+Msg("%d tests passed out of %d tests in security/pam_modules.h\n\n",pcnt,cnt);
+return cnt;
+#endif
+
+}



More information about the lsb-messages mailing list