aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog7
-rw-r--r--test/Makefile.am11
-rw-r--r--test/Makefile.in11
-rw-r--r--test/assignconst.awk58
-rw-r--r--test/assignconst.ok42
5 files changed, 9 insertions, 120 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 1d015467..99dcebb6 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,10 @@
+2012-12-25 Arnold D. Robbins <arnold@skeeve.com>
+
+ * assignconst.awk, assignconst.ok: Removed.
+ * Makefile.am (EXTRA_DIST): Removed assignconst.awk, assignconst.ok.
+ (SHLIB_TESTS): Removed assignconst.
+ (assignconst): Removed test.
+
2012-12-23 Arnold D. Robbins <arnold@skeeve.com>
* 4.0.2: Release tar ball made.
diff --git a/test/Makefile.am b/test/Makefile.am
index 8f4ce48f..da67b059 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -102,8 +102,6 @@ EXTRA_DIST = \
asort.ok \
asorti.awk \
asorti.ok \
- assignconst.awk \
- assignconst.ok \
awkpath.ok \
back89.awk \
back89.in \
@@ -955,7 +953,7 @@ LOCALE_CHARSET_TESTS = \
mbprintf1 mbprintf2 mbprintf3 rebt8b2 rtlenmb sort1 sprintfc
SHLIB_TESTS = \
- assignconst fnmatch filefuncs fork fork2 fts ordchr ordchr2 \
+ fnmatch filefuncs fork fork2 fts ordchr ordchr2 \
readdir readfile revout revtwoway rwarray testext time
# List of the tests which should be run with --lint option:
@@ -1683,13 +1681,6 @@ testext::
@$(AWK) -f testext.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ testext.awk
-assignconst:
- @echo $@
- @for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; \
- do AWKPATH=$(srcdir) $(AWK) -f $@.awk $$i ; \
- done 2>&1 | grep -v at_exit > _$@
- @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@
-
readdir:
@echo This test can fail on some filesystems.
@echo $@
diff --git a/test/Makefile.in b/test/Makefile.in
index 2316cf71..e4b22fd8 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -314,8 +314,6 @@ EXTRA_DIST = \
asort.ok \
asorti.awk \
asorti.ok \
- assignconst.awk \
- assignconst.ok \
awkpath.ok \
back89.awk \
back89.in \
@@ -1162,7 +1160,7 @@ LOCALE_CHARSET_TESTS = \
mbprintf1 mbprintf2 mbprintf3 rebt8b2 rtlenmb sort1 sprintfc
SHLIB_TESTS = \
- assignconst fnmatch filefuncs fork fork2 fts ordchr ordchr2 \
+ fnmatch filefuncs fork fork2 fts ordchr ordchr2 \
readdir readfile revout revtwoway rwarray testext time
@@ -2064,13 +2062,6 @@ testext::
@$(AWK) -f testext.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ testext.awk
-assignconst:
- @echo $@
- @for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; \
- do AWKPATH=$(srcdir) $(AWK) -f $@.awk $$i ; \
- done 2>&1 | grep -v at_exit > _$@
- @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@
-
readdir:
@echo This test can fail on some filesystems.
@echo $@
diff --git a/test/assignconst.awk b/test/assignconst.awk
deleted file mode 100644
index 907987c7..00000000
--- a/test/assignconst.awk
+++ /dev/null
@@ -1,58 +0,0 @@
-@load "testext"
-
-BEGIN {
- print ""
- print "test:", ARGV[1]
- switch (ARGV[1] + 0) {
- case 1:
- answer_num = 43
- break
- case 2:
- ++answer_num
- break
- case 3:
- --answer_num
- break
- case 4:
- answer_num++
- break
- case 5:
- answer_num--
- break
- case 6:
- answer_num += 1
- break
- case 7:
- answer_num -= 1
- break
- case 8:
- answer_num *= 1
- break
- case 9:
- answer_num /= 1
- break
- case 10:
- answer_num ^= 1
- break
- case 11:
- answer_num = answer_num "foo"
- break
- case 12:
- sub(/2/, "3", answer_num)
- break
- case 13:
- a[1] = 1
- for (answer_num in a)
- print answer_num, a[answer_num]
- break
- case 14:
- test_func(answer_num)
- break
- }
-}
-
-function test_func(val)
-{
- val++
- print "in test_func, val now =", val
-}
diff --git a/test/assignconst.ok b/test/assignconst.ok
deleted file mode 100644
index 97698b27..00000000
--- a/test/assignconst.ok
+++ /dev/null
@@ -1,42 +0,0 @@
-
-test: 1
-gawk: assignconst.awk:8: fatal: cannot assign to defined constant
-
-test: 2
-gawk: assignconst.awk:11: fatal: cannot assign to defined constant
-
-test: 3
-gawk: assignconst.awk:14: fatal: cannot assign to defined constant
-
-test: 4
-gawk: assignconst.awk:17: fatal: cannot assign to defined constant
-
-test: 5
-gawk: assignconst.awk:20: fatal: cannot assign to defined constant
-
-test: 6
-gawk: assignconst.awk:23: fatal: cannot assign to defined constant
-
-test: 7
-gawk: assignconst.awk:26: fatal: cannot assign to defined constant
-
-test: 8
-gawk: assignconst.awk:29: fatal: cannot assign to defined constant
-
-test: 9
-gawk: assignconst.awk:32: fatal: cannot assign to defined constant
-
-test: 10
-gawk: assignconst.awk:35: fatal: cannot assign to defined constant
-
-test: 11
-gawk: assignconst.awk:38: fatal: cannot assign to defined constant
-
-test: 12
-gawk: assignconst.awk:41: fatal: cannot assign to defined constant
-
-test: 13
-gawk: assignconst.awk:45: fatal: cannot assign to defined constant
-
-test: 14
-in test_func, val now = 43