XFAIL test_segfault (#136252)

Fixes https://github.com/pytorch/pytorch/issues/128551

As this has been failing in trunk for a while and there is no owner yet to fix it properly.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/136252
Approved by: https://github.com/andrewkho
This commit is contained in:
Huy Do 2024-09-19 04:17:06 +00:00 committed by PyTorch MergeBot
parent 775517693a
commit db80b98ec4
2 changed files with 7 additions and 0 deletions

View File

@ -40,6 +40,7 @@ from torch.testing._internal.common_utils import (
TEST_WITH_ROCM, TEST_WITH_ROCM,
TEST_WITH_TSAN, TEST_WITH_TSAN,
TestCase, TestCase,
xfailIfLinux,
) )
from torch.utils.data import ( from torch.utils.data import (
_utils, _utils,
@ -1382,6 +1383,8 @@ except RuntimeError as e:
del loader1_it del loader1_it
del loader2_it del loader2_it
# https://github.com/pytorch/pytorch/issues/128551
@xfailIfLinux
def test_segfault(self): def test_segfault(self):
p = ErrorTrackingProcess(target=_test_segfault) p = ErrorTrackingProcess(target=_test_segfault)
p.start() p.start()

View File

@ -1507,6 +1507,10 @@ def xfailIfTorchDynamo(func):
return unittest.expectedFailure(func) if TEST_WITH_TORCHDYNAMO else func return unittest.expectedFailure(func) if TEST_WITH_TORCHDYNAMO else func
def xfailIfLinux(func):
return unittest.expectedFailure(func) if IS_LINUX and not TEST_WITH_ROCM else func
def skipIfTorchDynamo(msg="test doesn't currently work with dynamo"): def skipIfTorchDynamo(msg="test doesn't currently work with dynamo"):
""" """
Usage: Usage: