err: fix warn-unused-result warning in test (-O2)