diff options
author | LRN <lrn1986@gmail.com> | 2012-08-20 07:13:41 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2012-08-20 07:13:41 +0000 |
commit | 0b60328d4800f27a32416b6870ced42b88233d3c (patch) | |
tree | 446faa0248135419056484c8f2a6f346f11352e4 | |
parent | a38245ac1190cc6e2075b775e25fc05d19689e22 (diff) | |
download | libextractor-0b60328d4800f27a32416b6870ced42b88233d3c.tar.gz libextractor-0b60328d4800f27a32416b6870ced42b88233d3c.zip |
Also report missing metadata when testing
-rw-r--r-- | src/plugins/test_lib.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/test_lib.c b/src/plugins/test_lib.c index e87fc51..8e5c3a8 100644 --- a/src/plugins/test_lib.c +++ b/src/plugins/test_lib.c | |||
@@ -123,7 +123,16 @@ ET_main (const char *plugin_name, | |||
123 | for (i=0; NULL != ps[i].filename; i++) | 123 | for (i=0; NULL != ps[i].filename; i++) |
124 | for (j=0; -1 != ps[i].solution[j].solved; j++) | 124 | for (j=0; -1 != ps[i].solution[j].solved; j++) |
125 | if (0 == ps[i].solution[j].solved) | 125 | if (0 == ps[i].solution[j].solved) |
126 | { | ||
126 | ret = 1; | 127 | ret = 1; |
128 | fprintf (stderr, | ||
129 | "Did not get expected meta data of type %d and format %d with value `%.*s' from plugin `%s'\n", | ||
130 | ps[i].solution[j].type, | ||
131 | ps[i].solution[j].format, | ||
132 | (int) ps[i].solution[j].data_len, | ||
133 | ps[i].solution[j].data, | ||
134 | plugin_name); | ||
135 | } | ||
127 | return ret; | 136 | return ret; |
128 | } | 137 | } |
129 | 138 | ||