projects
/
tedtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add .gitignore
[tedtools.git]
/
sfxtest.c
diff --git
a/sfxtest.c
b/sfxtest.c
index
f374036
..
e42e925
100644
(file)
--- a/
sfxtest.c
+++ b/
sfxtest.c
@@
-257,9
+257,16
@@
main(int argn, char *argv[]) {
}
if ( dump ) {
}
if ( dump ) {
- SFSWriteDump(&info, "./sfxtest.dump");
+ int n = 0xDEAFBEAF;
+ u_int32_t nz;
+ void *pn;
+
+ SFSWriteDump(&info, "./sfxtest.dump", &n, sizeof(n) );
SFSFree(&info,NULL);
SFSFree(&info,NULL);
- SFSReadDump(&info, "./sfxtest.dump");
+ SFSReadDump(&info, "./sfxtest.dump", &pn, &nz);
+
+ tassert(*(int*)pn == n);
+ tassert(sizeof(n) == nz);
}
if (list) {
}
if (list) {
@@
-345,7
+352,7
@@
main(int argn, char *argv[]) {
len = clrspace(buf);
if (!len) continue;
len = clrspace(buf);
if (!len) continue;
- res = SFSFindData(&info,buf);
+ res = SFSFindData(&info,buf
,0
);
if (verbose) {
if (enumerate && res)
printf("%d\n", *(int*)(res));
if (verbose) {
if (enumerate && res)
printf("%d\n", *(int*)(res));