aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-09-15 13:33:02 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-09-15 13:33:02 +0200
commit063847d6bd23e184c409f37645ba90fa4d039ada (patch)
tree63e360e3e0a2f46d187ef2e21487753a52697efa /shell/hush_test
parent197a6b3c14a8be7101903118516e0e16ec843eb5 (diff)
downloadbusybox-w32-063847d6bd23e184c409f37645ba90fa4d039ada.tar.gz
busybox-w32-063847d6bd23e184c409f37645ba90fa4d039ada.tar.bz2
busybox-w32-063847d6bd23e184c409f37645ba90fa4d039ada.zip
shell/math: return string error indicator, not integer
function old new delta expand_and_evaluate_arith 87 106 +19 expand_one_var 1563 1570 +7 arith 12 18 +6 evaluate_string 678 680 +2 arith_apply 1269 1271 +2 builtin_umask 133 132 -1 ash_arith 118 75 -43 expand_vars_to_list 1094 1038 -56 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/3 up/down: 36/-100) Total: -64 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'shell/hush_test')
-rw-r--r--shell/hush_test/hush-arith/arith.right54
1 files changed, 27 insertions, 27 deletions
diff --git a/shell/hush_test/hush-arith/arith.right b/shell/hush_test/hush-arith/arith.right
index 718c26ad0..fd4ea8e01 100644
--- a/shell/hush_test/hush-arith/arith.right
+++ b/shell/hush_test/hush-arith/arith.right
@@ -61,7 +61,7 @@ check that the unevaluated part of the ternary operator does not do evaluation o
6120 20 6120 20
6230 30 6230 30
63check precedence of assignment vs. conditional operator 63check precedence of assignment vs. conditional operator
64hush: error in arithmetic 64hush: arithmetic syntax error
65check precedence of assignment vs. conditional operator 65check precedence of assignment vs. conditional operator
66associativity of assignment-operator operator 66associativity of assignment-operator operator
676 6 676 6
@@ -70,22 +70,22 @@ octal, hex
70263 263 70263 263
71255 255 71255 255
7240 40 7240 40
73hush: error in arithmetic 73hush: arithmetic syntax error
74hush: divide by 0 74hush: divide by zero
75hush: can't execute 'let': No such file or directory 75hush: can't execute 'let': No such file or directory
76hush: error in arithmetic 76hush: arithmetic syntax error
77hush: can't execute 'let': No such file or directory 77hush: can't execute 'let': No such file or directory
78abc 78abc
79def 79def
80ghi 80ghi
81hush: error in arithmetic 81hush: arithmetic syntax error
8216 16 8216 16
83hush: error in arithmetic 83hush: arithmetic syntax error
84hush: error in arithmetic 84hush: arithmetic syntax error
85hush: error in arithmetic 85hush: arithmetic syntax error
869 9 869 9
87hush: error in arithmetic 87hush: arithmetic syntax error
88hush: error in arithmetic 88hush: arithmetic syntax error
899 9 899 9
909 9 909 9
919 9 919 9
@@ -106,18 +106,18 @@ hush: error in arithmetic
1063 3 1063 3
1074 4 1074 4
1084 4 1084 4
109hush: error in arithmetic 109hush: arithmetic syntax error
110hush: error in arithmetic 110hush: arithmetic syntax error
111hush: error in arithmetic 111hush: arithmetic syntax error
112hush: error in arithmetic 112hush: arithmetic syntax error
113hush: error in arithmetic 113hush: arithmetic syntax error
1144 4 1144 4
1157 7 1157 7
116-7 -7 116-7 -7
117hush: error in arithmetic 117hush: arithmetic syntax error
118hush: error in arithmetic 118hush: arithmetic syntax error
119hush: error in arithmetic 119hush: arithmetic syntax error
120hush: error in arithmetic 120hush: arithmetic syntax error
1216 6 1216 6
1223 3 1223 3
1237 7 1237 7
@@ -128,19 +128,19 @@ hush: error in arithmetic
1282 2 1282 2
129-2 -2 129-2 -2
1301 1 1301 1
131hush: error in arithmetic 131hush: arithmetic syntax error
132hush: error in arithmetic 132hush: arithmetic syntax error
133hush: error in arithmetic 133hush: arithmetic syntax error
134hush: error in arithmetic 134hush: arithmetic syntax error
135hush: error in arithmetic 135hush: arithmetic syntax error
1365 5 1365 5
1371 1 1371 1
1384 4 1384 4
1390 0 1390 0
140hush: error in arithmetic 140hush: arithmetic syntax error
141hush: error in arithmetic 141hush: arithmetic syntax error
1428 12 1428 12
143hush: error in arithmetic 143hush: arithmetic syntax error
14442 14442
14542 14542
14642 14642