Rewrite test to make Coverity happier

With the default config, it noticed the accept_comp was always 0, so the rest
of the test was dead code.
1 file changed