diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-15 13:33:02 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-15 13:33:02 +0200 |
commit | 063847d6bd23e184c409f37645ba90fa4d039ada (patch) | |
tree | 63e360e3e0a2f46d187ef2e21487753a52697efa /shell/hush_test | |
parent | 197a6b3c14a8be7101903118516e0e16ec843eb5 (diff) | |
download | busybox-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.right | 54 |
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 | |||
61 | 20 20 | 61 | 20 20 |
62 | 30 30 | 62 | 30 30 |
63 | check precedence of assignment vs. conditional operator | 63 | check precedence of assignment vs. conditional operator |
64 | hush: error in arithmetic | 64 | hush: arithmetic syntax error |
65 | check precedence of assignment vs. conditional operator | 65 | check precedence of assignment vs. conditional operator |
66 | associativity of assignment-operator operator | 66 | associativity of assignment-operator operator |
67 | 6 6 | 67 | 6 6 |
@@ -70,22 +70,22 @@ octal, hex | |||
70 | 263 263 | 70 | 263 263 |
71 | 255 255 | 71 | 255 255 |
72 | 40 40 | 72 | 40 40 |
73 | hush: error in arithmetic | 73 | hush: arithmetic syntax error |
74 | hush: divide by 0 | 74 | hush: divide by zero |
75 | hush: can't execute 'let': No such file or directory | 75 | hush: can't execute 'let': No such file or directory |
76 | hush: error in arithmetic | 76 | hush: arithmetic syntax error |
77 | hush: can't execute 'let': No such file or directory | 77 | hush: can't execute 'let': No such file or directory |
78 | abc | 78 | abc |
79 | def | 79 | def |
80 | ghi | 80 | ghi |
81 | hush: error in arithmetic | 81 | hush: arithmetic syntax error |
82 | 16 16 | 82 | 16 16 |
83 | hush: error in arithmetic | 83 | hush: arithmetic syntax error |
84 | hush: error in arithmetic | 84 | hush: arithmetic syntax error |
85 | hush: error in arithmetic | 85 | hush: arithmetic syntax error |
86 | 9 9 | 86 | 9 9 |
87 | hush: error in arithmetic | 87 | hush: arithmetic syntax error |
88 | hush: error in arithmetic | 88 | hush: arithmetic syntax error |
89 | 9 9 | 89 | 9 9 |
90 | 9 9 | 90 | 9 9 |
91 | 9 9 | 91 | 9 9 |
@@ -106,18 +106,18 @@ hush: error in arithmetic | |||
106 | 3 3 | 106 | 3 3 |
107 | 4 4 | 107 | 4 4 |
108 | 4 4 | 108 | 4 4 |
109 | hush: error in arithmetic | 109 | hush: arithmetic syntax error |
110 | hush: error in arithmetic | 110 | hush: arithmetic syntax error |
111 | hush: error in arithmetic | 111 | hush: arithmetic syntax error |
112 | hush: error in arithmetic | 112 | hush: arithmetic syntax error |
113 | hush: error in arithmetic | 113 | hush: arithmetic syntax error |
114 | 4 4 | 114 | 4 4 |
115 | 7 7 | 115 | 7 7 |
116 | -7 -7 | 116 | -7 -7 |
117 | hush: error in arithmetic | 117 | hush: arithmetic syntax error |
118 | hush: error in arithmetic | 118 | hush: arithmetic syntax error |
119 | hush: error in arithmetic | 119 | hush: arithmetic syntax error |
120 | hush: error in arithmetic | 120 | hush: arithmetic syntax error |
121 | 6 6 | 121 | 6 6 |
122 | 3 3 | 122 | 3 3 |
123 | 7 7 | 123 | 7 7 |
@@ -128,19 +128,19 @@ hush: error in arithmetic | |||
128 | 2 2 | 128 | 2 2 |
129 | -2 -2 | 129 | -2 -2 |
130 | 1 1 | 130 | 1 1 |
131 | hush: error in arithmetic | 131 | hush: arithmetic syntax error |
132 | hush: error in arithmetic | 132 | hush: arithmetic syntax error |
133 | hush: error in arithmetic | 133 | hush: arithmetic syntax error |
134 | hush: error in arithmetic | 134 | hush: arithmetic syntax error |
135 | hush: error in arithmetic | 135 | hush: arithmetic syntax error |
136 | 5 5 | 136 | 5 5 |
137 | 1 1 | 137 | 1 1 |
138 | 4 4 | 138 | 4 4 |
139 | 0 0 | 139 | 0 0 |
140 | hush: error in arithmetic | 140 | hush: arithmetic syntax error |
141 | hush: error in arithmetic | 141 | hush: arithmetic syntax error |
142 | 8 12 | 142 | 8 12 |
143 | hush: error in arithmetic | 143 | hush: arithmetic syntax error |
144 | 42 | 144 | 42 |
145 | 42 | 145 | 42 |
146 | 42 | 146 | 42 |