projects
/
debian
/
tar
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.21
[debian/tar]
/
tests
/
genfile.c
diff --git
a/tests/genfile.c
b/tests/genfile.c
index 91cf5b44c64cf77966b72764a2abde8479d66917..1b338bce2f95a77635abe7f7f6926b53802d4395 100644
(file)
--- a/
tests/genfile.c
+++ b/
tests/genfile.c
@@
-261,13
+261,11
@@
verify_file (char *file_name)
error (0, errno, _("stat(%s) failed"), file_name);
if (st.st_size != file_length + seek_offset)
error (0, errno, _("stat(%s) failed"), file_name);
if (st.st_size != file_length + seek_offset)
- {
- printf ("%lu %lu\n", (unsigned long)st.st_size , (unsigned long)file_length);
- exit (1);
- }
+ error (1, 0, _("requested file length %lu, actual %lu"),
+ (unsigned long)st.st_size, (unsigned long)file_length);
if (mode == mode_sparse && !ST_IS_SPARSE (st))
if (mode == mode_sparse && !ST_IS_SPARSE (st))
- e
xit (1
);
+ e
rror (1, 0, _("created file is not sparse")
);
}
}
}
}