From: Tim Kientzle Date: Sat, 27 Jun 2009 23:59:27 +0000 (-0400) Subject: Better error reporting of certain test failures. X-Git-Tag: v2.8.0~559 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=822dfd377cf7158842cdb73cc51017bf3d30376c;p=thirdparty%2Flibarchive.git Better error reporting of certain test failures. SVN-Revision: 1194 --- diff --git a/tar/test/test_copy.c b/tar/test/test_copy.c index afef9f4c5..a45d512a0 100644 --- a/tar/test/test_copy.c +++ b/tar/test/test_copy.c @@ -50,6 +50,7 @@ create_tree(void) buff[i + 2] = 'a' + (i % 26); buff[i + 3] = '\0'; f = fopen(buff, "w+"); + failure("f = fopen(\"%s\", \"w+\")", buff); assert(f != NULL); fprintf(f, buff); fclose(f); @@ -71,12 +72,14 @@ create_tree(void) buff2[0] = '.'; buff2[1] = '.'; buff2[2] = '/'; + failure("buff=\"%s\" buff2=\"%s\"", buff, buff2); assertEqualInt(0, symlink(buff2, buff)); #else skipping("create a symlink to the above"); #endif /* Create a dir named "d/abcdef...". */ buff[0] = 'd'; + failure("buff=\"%s\"", buff); assertEqualInt(0, mkdir(buff, 0775)); }