[svn] assuan - r207 - in trunk: . tests

svn author marcus cvs at cvs.gnupg.org
Tue Sep 19 12:46:58 CEST 2006


Author: marcus
Date: 2006-09-19 12:46:58 +0200 (Tue, 19 Sep 2006)
New Revision: 207

Added:
   trunk/tests/motd
Modified:
   trunk/ChangeLog
   trunk/tests/Makefile.am
   trunk/tests/fdpassing.c
Log:
2006-09-19  Marcus Brinkmann  <marcus at g10code.de>

	* tests/fdpassing.c (MOTD): New macro.
	* tests/Makefile.am (AM_CPPFLAGS): New variable.
	* tests/motd: New file.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2006-09-19 10:34:16 UTC (rev 206)
+++ trunk/ChangeLog	2006-09-19 10:46:58 UTC (rev 207)
@@ -1,3 +1,9 @@
+2006-09-19  Marcus Brinkmann  <marcus at g10code.de>
+
+	* tests/fdpassing.c (MOTD): New macro.
+	* tests/Makefile.am (AM_CPPFLAGS): New variable.
+	* tests/motd: New file.
+
 2006-09-14  Werner Koch  <wk at g10code.com>
 
 	Released 0.9.0.

Modified: trunk/tests/Makefile.am
===================================================================
--- trunk/tests/Makefile.am	2006-09-19 10:34:16 UTC (rev 206)
+++ trunk/tests/Makefile.am	2006-09-19 10:46:58 UTC (rev 207)
@@ -29,6 +29,7 @@
 
 TESTS = fdpassing
 
+AM_CPPFLAGS = -DSRCDIR=$(srcdir)
 AM_CFLAGS = # $(GPG_ERROR_CFLAGS)
 
 noinst_HEADERS = common.h

Modified: trunk/tests/fdpassing.c
===================================================================
--- trunk/tests/fdpassing.c	2006-09-19 10:34:16 UTC (rev 206)
+++ trunk/tests/fdpassing.c	2006-09-19 10:46:58 UTC (rev 207)
@@ -32,6 +32,13 @@
 #include "../src/assuan.h"
 #include "common.h"
 
+#ifndef SRCDIR
+#define SRCDIR "/etc"
+#endif
+#define STRINGIFY2(str) #str
+#define STRINGIFY(str) STRINGIFY2(str)
+#define MOTD STRINGIFY(SRCDIR) "/motd"
+
 
 /*
 
@@ -159,10 +166,10 @@
 
   for (i=0; i < 6; i++)
     {
-      fp = fopen ("/etc/motd", "r");
+      fp = fopen (MOTD, "r");
       if (!fp)
         {
-          log_error ("failed to open `%s': %s\n", "/etc/motd",
+          log_error ("failed to open `%s': %s\n", MOTD,
                      strerror (errno));
           return -1;
         }

Added: trunk/tests/motd
===================================================================
--- trunk/tests/motd	2006-09-19 10:34:16 UTC (rev 206)
+++ trunk/tests/motd	2006-09-19 10:46:58 UTC (rev 207)
@@ -0,0 +1,9 @@
+Big Brother trust at unlimited.com 0.4.2-TC #1 PREEMPT Thu Aug 3 02:52:00 UTC 2006 TC Lockinos
+
+The programs included monitor each and every keystroke by its users
+and report them back for evaluation.  Use of this software is entirely
+voluntary, but non-compliance results in reducing the machine to an
+expensive paper-weight.
+
+There is no warranty whatsoever, and should we have made a mistake, we will
+come and sue you for taking advantage of that.




More information about the Gnupg-commits mailing list