svn commit: trunk/uClibc/test/unistd

aldot at uclibc.org aldot at uclibc.org
Fri Sep 26 08:05:24 UTC 2008


Author: aldot
Date: 2008-09-26 01:05:23 -0700 (Fri, 26 Sep 2008)
New Revision: 23511

Log:
- revert inappropriate part of r23478


Modified:
   trunk/uClibc/test/unistd/tst-preadwrite.c


Changeset:
Modified: trunk/uClibc/test/unistd/tst-preadwrite.c
===================================================================
--- trunk/uClibc/test/unistd/tst-preadwrite.c	2008-09-25 21:06:24 UTC (rev 23510)
+++ trunk/uClibc/test/unistd/tst-preadwrite.c	2008-09-26 08:05:23 UTC (rev 23511)
@@ -30,6 +30,9 @@
 # define PWRITE pwrite
 #endif
 
+#define STRINGIFY(s) STRINGIFY2 (s)
+#define STRINGIFY2(s) #s
+
 /* Prototype for our test function.  */
 extern void do_prepare (int argc, char *argv[]);
 extern int do_test (int argc, char *argv[]);
@@ -53,7 +56,7 @@
    char name_len;
 
 #define FNAME FNAME2(TRUNCATE)
-#define FNAME2(s) "/" __stringify(s) "XXXXXX"
+#define FNAME2(s) "/" STRINGIFY(s) "XXXXXX"
 
    name_len = strlen (test_dir);
    name = malloc (name_len + sizeof (FNAME));
@@ -85,15 +88,15 @@
   for (i = 100; i < 200; ++i)
     buf[i] = i;
   if (PWRITE (fd, buf + 100, 100, 100) != 100)
-    error (EXIT_FAILURE, errno, "during %s", __stringify (PWRITE));
+    error (EXIT_FAILURE, errno, "during %s", STRINGIFY (PWRITE));
 
   for (i = 450; i < 600; ++i)
     buf[i] = i;
   if (PWRITE (fd, buf + 450, 150, 450) != 150)
-    error (EXIT_FAILURE, errno, "during %s", __stringify (PWRITE));
+    error (EXIT_FAILURE, errno, "during %s", STRINGIFY (PWRITE));
 
   if (PREAD (fd, res, sizeof (buf) - 50, 50) != sizeof (buf) - 50)
-    error (EXIT_FAILURE, errno, "during %s", __stringify (PREAD));
+    error (EXIT_FAILURE, errno, "during %s", STRINGIFY (PREAD));
 
   close (fd);
   unlink (name);




More information about the uClibc-cvs mailing list