Ensure tests get passed on Windows (#25145)
Summary:
(1) check error codes after every test command
(2) add missing LibTorch tests mentioned in https://discuss.pytorch.org/t/pre-compiled-tests-failing/54166
Pull Request resolved: https://github.com/pytorch/pytorch/pull/25145
Differential Revision: D17050539
Pulled By: ezyang
fbshipit-source-id: 8a01e5f3c97b181cf2cd7641a545551dcb3627b8