Fossil SCM

Update the test-parse-manifest test command so that it reports parse failures on standard output.

drh 2012-06-29 11:05 trunk
Commit 4113f5881bba98912b14ca5d77d17e9fb5816ac3
1 file changed +1
--- src/manifest.c
+++ src/manifest.c
@@ -974,10 +974,11 @@
974974
if( g.argc>3 ) n = atoi(g.argv[3]);
975975
for(i=0; i<n; i++){
976976
Blob b2;
977977
blob_copy(&b2, &b);
978978
p = manifest_parse(&b2, 0);
979
+ if( p==0 ) fossil_print("FAILED!\n");
979980
manifest_destroy(p);
980981
}
981982
}
982983
983984
/*
984985
--- src/manifest.c
+++ src/manifest.c
@@ -974,10 +974,11 @@
974 if( g.argc>3 ) n = atoi(g.argv[3]);
975 for(i=0; i<n; i++){
976 Blob b2;
977 blob_copy(&b2, &b);
978 p = manifest_parse(&b2, 0);
 
979 manifest_destroy(p);
980 }
981 }
982
983 /*
984
--- src/manifest.c
+++ src/manifest.c
@@ -974,10 +974,11 @@
974 if( g.argc>3 ) n = atoi(g.argv[3]);
975 for(i=0; i<n; i++){
976 Blob b2;
977 blob_copy(&b2, &b);
978 p = manifest_parse(&b2, 0);
979 if( p==0 ) fossil_print("FAILED!\n");
980 manifest_destroy(p);
981 }
982 }
983
984 /*
985

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button