open-tests: fix build failure with -Werror=old-style-declaration