[PATCH 1/1] amstream/tests: Add a few return value checks (Coverity).