summaryrefslogtreecommitdiff
path: root/test/css21.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/css21.c')
-rw-r--r--test/css21.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/css21.c b/test/css21.c
index 267beec..3da2bfb 100644
--- a/test/css21.c
+++ b/test/css21.c
@@ -4,6 +4,7 @@
#include <libcss/libcss.h>
#include "stylesheet.h"
+#include "dump.h"
#include "testutils.h"
#define ITERATIONS (1)
@@ -80,7 +81,13 @@ int main(int argc, char **argv)
#endif
#if DUMP_CSS
- css_stylesheet_dump(sheet, stdout);
+ char *out;
+ size_t outlen = origlen * 2;
+ out = malloc(outlen);
+ assert(out != NULL);
+ dump_sheet(sheet, out, &outlen);
+ fwrite(out, origlen * 2 - outlen, 1, stdout);
+ free(out);
#endif
css_stylesheet_destroy(sheet);