test: [v2] Validate server log reading more carefully in signal-logging test
authorKeith Packard <keithp@keithp.com>
Fri, 18 Apr 2014 21:47:00 +0000 (14:47 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 18 Apr 2014 23:30:09 +0000 (16:30 -0700)
commit570b1c79942b237022be3594ae3a25e7b833cb73
treeb42e7dbc2f6b9fb9bce714cb1edf15f5a4859d89
parent3119aae80782b7ff5613c719fbcc8a01feab1134
test: [v2] Validate server log reading more carefully in signal-logging test

Check return value from fgets and strchr instead of assuming they
worked.

[v2]

Don't do any necessary work inside the assert call.
Also make sure the return value was long enough.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
test/signal-logging.c