mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
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:
parent
775517693a
commit
db80b98ec4
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user