File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -162,32 +162,32 @@ popd
162
162
pushd fpm_test_exit_code
163
163
" $fpm " build
164
164
165
- # odd number -> return 0
165
+ # odd number -> success!
166
166
EXIT_CODE=0
167
167
" $fpm " run -- 1 || EXIT_CODE=$?
168
168
test $EXIT_CODE -eq 0
169
169
170
- # even number -> return 3
170
+ # even number -> error 3
171
171
EXIT_CODE=0
172
172
" $fpm " run -- 512 || EXIT_CODE=$?
173
173
test $EXIT_CODE -eq 3
174
174
175
- # even number -> return 3
175
+ # even number -> error 3
176
176
EXIT_CODE=0
177
177
" $fpm " run -- 0 || EXIT_CODE=$?
178
178
test $EXIT_CODE -eq 3
179
179
180
- # not an integer -> return 3
180
+ # not an integer -> error 2
181
181
EXIT_CODE=0
182
182
" $fpm " run -- 3.1415 || EXIT_CODE=$?
183
183
test $EXIT_CODE -eq 2
184
184
185
- # not a number
185
+ # not a number -> error 2
186
186
EXIT_CODE=0
187
187
" $fpm " run -- notanumber || EXIT_CODE=$?
188
188
test $EXIT_CODE -eq 2
189
189
190
- # no arguments
190
+ # no arguments -> error 1
191
191
EXIT_CODE=0
192
192
" $fpm " run || EXIT_CODE=$?
193
193
test $EXIT_CODE -eq 1
You can’t perform that action at this time.
0 commit comments