about summary refs log tree commit diff
path: root/src/liballoc/tests/vec.rs
diff options
context:
space:
mode:
authorsnf <snf@users.noreply.github.com>2018-03-13 03:41:45 -0700
committersnf <snf@users.noreply.github.com>2018-03-14 03:48:42 -0700
commitb08b5ae0ec22e67d1cab7495865a0b34d4e6c5a2 (patch)
treee5eaee14c14cd878733d6d06623a1e2670dae968 /src/liballoc/tests/vec.rs
parent92bfcd2b192e59d12d64acf6f46c1897a3273b3e (diff)
downloadrust-b08b5ae0ec22e67d1cab7495865a0b34d4e6c5a2.tar.gz
rust-b08b5ae0ec22e67d1cab7495865a0b34d4e6c5a2.zip
try_reserve: disabling tests for asmjs, blocked by #48968
Diffstat (limited to 'src/liballoc/tests/vec.rs')
-rw-r--r--src/liballoc/tests/vec.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/liballoc/tests/vec.rs b/src/liballoc/tests/vec.rs
index 3c17a401bba..85e11d8b8ee 100644
--- a/src/liballoc/tests/vec.rs
+++ b/src/liballoc/tests/vec.rs
@@ -10,8 +10,11 @@
 
 use std::borrow::Cow;
 use std::mem::size_of;
-use std::{usize, isize, panic};
+use std::{usize, panic};
+#[cfg(not(target_arch = "asmjs"))]
+use std::isize;
 use std::vec::{Drain, IntoIter};
+#[cfg(not(target_arch = "asmjs"))]
 use std::collections::CollectionAllocErr::*;
 
 struct DropCounter<'a> {
@@ -991,6 +994,7 @@ fn test_reserve_exact() {
     assert!(v.capacity() >= 33)
 }
 
+#[cfg(not(target_arch = "asmjs"))]
 #[test]
 fn test_try_reserve() {
 
@@ -1093,6 +1097,7 @@ fn test_try_reserve() {
 
 }
 
+#[cfg(not(target_arch = "asmjs"))]
 #[test]
 fn test_try_reserve_exact() {