diff options
Diffstat (limited to 'examples/bigxml')
-rw-r--r-- | examples/bigxml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/bigxml b/examples/bigxml new file mode 100644 index 0000000..0cb746b --- /dev/null +++ b/examples/bigxml @@ -0,0 +1,17 @@ +#!/bin/sh +# check error messages on lines past 2^16 + +SEDLINUM_PROG='s/^\([^:][^:]*:[0-9]\{4\}\)[0-9]\.[0-9][0-9]*:.*$/\1x/p' + +xmldoc() +{ + BAD="$1" + DOCTYPE="$2" + + echo '<?xml version="1.0"?>' + [ -n "$DOCTYPE" ] && echo "$DOCTYPE" + echo '<root>' + ${AWK:-awk} 'BEGIN{for(i=0; i < 69999; i++) print ""}' < /dev/null + echo "$BAD" + echo '</root>' +} |