The ecdsa and schnorr examples print whether the signature verified, but return EXIT_SUCCESS either way. Both build systems run the examples as tests, so if verification broke, those test runs would still pass.
I checked this by flipping a byte of the signature (schnorr) and of the message hash (ecdsa) right before verification: both examples printed "Is the signature valid? false" and ctest -R "example\.(schnorr|ecdsa)" still reported them as passed. With this change the same experiment makes both tests fail.
This matches what the musig example already does when secp256k1_schnorrsig_verify fails. The return stays at the end of main, so the context destroy and secret key erasure still happen first.