piglit-util: Add a sanity check for subtests
Check for subtests being non-NULL before using it. Now instead of crashing the tests will produce an error about non-existent subtests.
Signed-off-by: Eric R. Smith eric.smith@collabora.com
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
Check for subtests being non-NULL before using it. Now instead of crashing the tests will produce an error about non-existent subtests.
Signed-off-by: Eric R. Smith eric.smith@collabora.com