Fossil SCM
Update the test-parse-manifest test command so that it reports parse failures on standard output.
Commit
4113f5881bba98912b14ca5d77d17e9fb5816ac3
Parent
23022a8546d9fdc…
1 file changed
+1
+1
| --- src/manifest.c | ||
| +++ src/manifest.c | ||
| @@ -974,10 +974,11 @@ | ||
| 974 | 974 | if( g.argc>3 ) n = atoi(g.argv[3]); |
| 975 | 975 | for(i=0; i<n; i++){ |
| 976 | 976 | Blob b2; |
| 977 | 977 | blob_copy(&b2, &b); |
| 978 | 978 | p = manifest_parse(&b2, 0); |
| 979 | + if( p==0 ) fossil_print("FAILED!\n"); | |
| 979 | 980 | manifest_destroy(p); |
| 980 | 981 | } |
| 981 | 982 | } |
| 982 | 983 | |
| 983 | 984 | /* |
| 984 | 985 |
| --- 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 |