| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | # addd 2018-04-03 by RGerhards, released under ASL 2.0 |
| 3 | . ${srcdir:=.}/diag.sh init |
| 4 | generate_conf |
| 5 | add_conf ' |
| 6 | action(type="omfile" file=" ") |
| 7 | action(type="omfile" file=`echo $RSYSLOG_OUT_LOG`) |
| 8 | ' |
| 9 | startup |
| 10 | shutdown_when_empty |
| 11 | wait_shutdown |
| 12 | |
| 13 | grepscip-shell system . . grep. "only of whitespace" $RSYSLOG_OUT_LOG > /dev/nullscip-shell filesystem . . `/dev/null`. |
| 14 | if [scip-shell system . . `[`. $? -ne 0 ]; then |
| 15 | echoscip-shell system . . echo. |
| 16 | echoscip-shell system . . echo. "FAIL: expected error message not found. $RSYSLOG_OUT_LOG is:" |
| 17 | catscip-shell system . . cat. $RSYSLOG_OUT_LOG |
| 18 | error_exit 1 |
| 19 | fi |
| 20 | |
| 21 | exit_test |