diff options
author | Anders Broman <anders.broman@ericsson.com> | 2011-04-04 05:48:06 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2011-04-04 05:48:06 +0000 |
commit | 6cef8aa872aeb5fb8ab2c544c5bbed4fd445802d (patch) | |
tree | c3b5c9435876e58a3e2938a9ed9a24464864a9c8 /epan/tvbtest.c | |
parent | f3af25f2707f25446a89b3b9d172766adead543a (diff) | |
download | wireshark-6cef8aa872aeb5fb8ab2c544c5bbed4fd445802d.tar.gz |
From jakub Zawadzki:
I've fixed composite tests #0 and #2
svn path=/trunk/; revision=36440
Diffstat (limited to 'epan/tvbtest.c')
-rw-r--r-- | epan/tvbtest.c | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/epan/tvbtest.c b/epan/tvbtest.c index de1aeec5ee..ae3aa8aea8 100644 --- a/epan/tvbtest.c +++ b/epan/tvbtest.c @@ -22,6 +22,10 @@ * */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -244,6 +248,13 @@ test(tvbuff_t *tvb, gchar* name, return TRUE; } +gboolean +skip(tvbuff_t *tvb _U_, gchar* name, + guint8* expected_data _U_, guint expected_length _U_) +{ + printf("Skipping TVB=%s\n", name); + return FALSE; +} void @@ -259,12 +270,10 @@ run_tests(void) guint8 *subset[6]; guint subset_length[6]; guint8 temp; -#if 0 guint8 *comp[6]; tvbuff_t *tvb_comp[6]; guint comp_length[6]; int len; -#endif for (i = 0; i < 3; i++) { small[i] = g_new(guint8, 16); @@ -329,7 +338,6 @@ run_tests(void) test(tvb_subset[4], "Subset 4", subset[4], subset_length[4]); test(tvb_subset[5], "Subset 5", subset[5], subset_length[5]); -#if 0 /* Composite tvbuffs don't work at the moment -- tests commented out until * they do. */ @@ -408,12 +416,11 @@ run_tests(void) /* Test the TVBUFF_COMPOSITE objects. */ test(tvb_comp[0], "Composite 0", comp[0], comp_length[0]); - test(tvb_comp[1], "Composite 1", comp[1], comp_length[1]); + skip(tvb_comp[1], "Composite 1", comp[1], comp_length[1]); test(tvb_comp[2], "Composite 2", comp[2], comp_length[2]); - test(tvb_comp[3], "Composite 3", comp[3], comp_length[3]); - test(tvb_comp[4], "Composite 4", comp[4], comp_length[4]); - test(tvb_comp[5], "Composite 5", comp[5], comp_length[5]); -#endif + skip(tvb_comp[3], "Composite 3", comp[3], comp_length[3]); + skip(tvb_comp[4], "Composite 4", comp[4], comp_length[4]); + skip(tvb_comp[5], "Composite 5", comp[5], comp_length[5]); } int |