Here's how I see what you are, in effect, seeking:
You have a perl extension (ie a module that contains XS code).
You want the "perl Makefile.PL" step to pass.
But you want the "make" step to fail.
Then you want the "make test" script to report the failure - even though "make test" cannot possibly be run if "make" failed.
It seems to me that you are asking for the impossible.