Skip to content

Commit a4d4ee7

Browse files
danakjAravind Vasudevan
authored andcommitted
Disable tests/codegen/vec-shrink-panik.rs on Windows
The test is known to fail on Windows: rust-lang/rust#96464 [email protected] Bug: 1271215 Change-Id: Ic7fda651e5a8ae5e9ebcd565415716d9d9e5c8b4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4226612 Reviewed-by: Collin Baker <[email protected]> Commit-Queue: danakj <[email protected]> Cr-Commit-Position: refs/heads/main@{#1101810} NOKEYCHECK=True GitOrigin-RevId: d9bbdcf8400c22794c86e4fe37d265bdd16e1025
1 parent 034e440 commit a4d4ee7

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

build_rust.py

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,20 @@
6565
THIRD_PARTY_DIR, VERSION_STAMP_PATH,
6666
GetPackageVersionForBuild)
6767

68+
EXCLUDED_TESTS = [
69+
# Temporarily disabled due to https://github.com/rust-lang/rust/issues/94322
70+
'tests/ui/numeric/numeric-cast.rs',
71+
# Temporarily disabled due to https://github.com/rust-lang/rust/issues/96497
72+
'tests/codegen/issue-96497-slice-size-nowrap.rs',
73+
# TODO(crbug.com/1347563): Re-enable when fixed.
74+
'tests/codegen/sanitizer-cfi-emit-type-checks.rs',
75+
'tests/codegen/sanitizer-cfi-emit-type-metadata-itanium-cxx-abi.rs',
76+
]
77+
EXCLUDED_TESTS_WINDOWS = [
78+
# https://github.com/rust-lang/rust/issues/96464
79+
'tests/codegen/vec-shrink-panik.rs'
80+
]
81+
6882
RUST_GIT_URL = ('https://chromium.googlesource.com/external/' +
6983
'github.com/rust-lang/rust')
7084

@@ -104,16 +118,6 @@
104118
'tests/ui',
105119
]
106120

107-
EXCLUDED_TESTS = [
108-
# Temporarily disabled due to https://github.com/rust-lang/rust/issues/94322
109-
'src/test/ui/numeric/numeric-cast.rs',
110-
# Temporarily disabled due to https://github.com/rust-lang/rust/issues/96497
111-
'src/test/codegen/issue-96497-slice-size-nowrap.rs',
112-
# TODO(crbug.com/1347563): Re-enable when fixed.
113-
'src/test/codegen/sanitizer-cfi-emit-type-checks.rs',
114-
'src/test/codegen/sanitizer-cfi-emit-type-metadata-itanium-cxx-abi.rs',
115-
]
116-
117121

118122
def VerifyStage0JsonHash():
119123
hasher = hashlib.sha256()
@@ -327,6 +331,10 @@ def GetTestArgs():
327331
for excluded in EXCLUDED_TESTS:
328332
args.append('--skip')
329333
args.append(excluded)
334+
if sys.platform == 'win32':
335+
for excluded in EXCLUDED_TESTS_WINDOWS:
336+
args.append('--skip')
337+
args.append(excluded)
330338
return args
331339

332340

0 commit comments

Comments
 (0)