cfengine/core — pull request #974 by tzz (2013-09-30 14:20:41+00:00)
Title: Redmine#2981: acceptance test for execresult() and returnszero()

See https://cfengine.com/dev/issues/2981 and others

Sample output with evalfunction.c changes from `cf-agent -K -I -f ./01_vars/02_functions/execresult_multiples.cf.sub`:

```
2013-09-30T10:17:16-0400 info: execresult ran '/bin/echo RETONCE' successfully
2013-09-30T10:17:16-0400 info: execresult ran '/bin/echo RETONCE' successfully
2013-09-30T10:17:16-0400 info: execresult ran '/bin/echo RETONCE' successfully
2013-09-30T10:17:16-0400 info: returnszero ran '/bin/env X=1 test -e CLASSONCE' successfully and it did not return zero
2013-09-30T10:17:16-0400 info: execresult ran '/bin/echo RETONCE' successfully
2013-09-30T10:17:16-0400 info: execresult ran '/bin/echo RETONCE' successfully
2013-09-30T10:17:16-0400 info: execresult ran '/bin/echo RETONCE' successfully
2013-09-30T10:17:16-0400 info: returnszero ran '/bin/env X=1 test -e CLASSONCE' successfully and it did not return zero
2013-09-30T10:17:16-0400 info: execresult ran '/bin/echo RETONCE' successfully
2013-09-30T10:17:16-0400 info: execresult ran '/bin/echo RETONCE' successfully
2013-09-30T10:17:16-0400 info: returnszero ran '/bin/env X=1 test -e CLASSONCE' successfully and it did not return zero
2013-09-30T10:17:16-0400 info: execresult ran '/bin/echo RETONCE' successfully
2013-09-30T10:17:16-0400 info: execresult ran '/bin/echo RETONCE' successfully
2013-09-30T10:17:16-0400 info: returnszero ran '/bin/env X=1 test -e CLASSONCE' successfully and it did not return zero
2013-09-30T10:17:16-0400 info: execresult ran '/bin/echo RETONCE' successfully
```