]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Better error reporting of certain test failures.
authorTim Kientzle <kientzle@gmail.com>
Sat, 27 Jun 2009 23:59:27 +0000 (19:59 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sat, 27 Jun 2009 23:59:27 +0000 (19:59 -0400)
SVN-Revision: 1194

tar/test/test_copy.c

index afef9f4c5b97cc5a90b94e07662db999d096ab1c..a45d512a0e1e90214448d72424f7a6ea2639889d 100644 (file)
@@ -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));
        }