From 1e0823d0a580ec61ae5a4e4826586e24f64eee0b Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 4 Oct 2005 21:42:39 +0000 Subject: r10719: Remove __FUNCTION__ macro as it might not be available at all systems (pointed out by John E. Malmberg) (This used to be commit 3169bbc15703b39943a11939e9dcccb2a9b4ad5d) --- source4/build/tests/os2_delete.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source4/build/tests/os2_delete.c b/source4/build/tests/os2_delete.c index dad27e8f2c..288e4a5d8f 100644 --- a/source4/build/tests/os2_delete.c +++ b/source4/build/tests/os2_delete.c @@ -22,7 +22,7 @@ #define TESTDIR "test.dir" -#define FAILED() (fprintf(stderr, "Failed at %s:%d - %s\n", __FUNCTION__, __LINE__, strerror(errno)), exit(1), 1) +#define FAILED(d) (fprintf(stderr, "Failed for %s - %s\n", d, strerror(errno)), exit(1), 1) #ifndef MIN #define MIN(a,b) ((a)<(b)?(a):(b)) @@ -32,7 +32,7 @@ static void cleanup(void) { /* I'm a lazy bastard */ system("rm -rf " TESTDIR); - mkdir(TESTDIR, 0700) == 0 || FAILED(); + mkdir(TESTDIR, 0700) == 0 || FAILED("mkdir"); } static void create_files() @@ -41,7 +41,7 @@ static void create_files() for (i=0;id_name, ".") == 0 || FAILED(); + strcmp(de->d_name, ".") == 0 || FAILED("match ."); de = readdir(d); - strcmp(de->d_name, "..") == 0 || FAILED(); + strcmp(de->d_name, "..") == 0 || FAILED("match .."); while (1) { int n = os2_delete(d); @@ -104,7 +104,7 @@ int main(void) printf("Deleted %d files of %d\n", total_deleted, NUM_FILES); - rmdir(TESTDIR) == 0 || FAILED(); + rmdir(TESTDIR) == 0 || FAILED("rmdir"); return 0; } -- cgit