summaryrefslogtreecommitdiff
path: root/examples/bigxml
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-09-08 22:07:42 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-09-08 22:07:42 +0900
commit4732847654ed74ed893b7ea088805832fd91cc18 (patch)
tree393207d68983c3b587733b83714bef2de2457025 /examples/bigxml
downloadxmlstarlet-tizen_2.3.1_release.tar.gz
xmlstarlet-tizen_2.3.1_release.tar.bz2
xmlstarlet-tizen_2.3.1_release.zip
Diffstat (limited to 'examples/bigxml')
-rw-r--r--examples/bigxml17
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>'
+}