Make target-specific test case in r177474 only run when that target is built