Skip to content

Commit

Permalink
Skip tests on emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed May 7, 2020
1 parent 82cb88b commit 9a164ff
Show file tree
Hide file tree
Showing 114 changed files with 118 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/test/ui/array-slice-vec/bounds-check-no-overflow.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:index out of bounds
// ignore-emscripten no processes

use std::usize;
use std::mem::size_of;
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/array-slice-vec/dst-raw-slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

// run-fail
// error-pattern:index out of bounds
// ignore-emscripten no processes

#[allow(unconditional_panic)]
fn main() {
let a: *const [_] = &[1, 2, 3];
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/binop/binop-fail-3.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:quux
// ignore-emscripten no processes

fn foo() -> ! {
panic!("quux");
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/binop/binop-panic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:quux
// ignore-emscripten no processes

fn my_err(s: String) -> ! {
println!("{}", s);
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/borrowck/borrowck-local-borrow.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:panic 1
// ignore-emscripten no processes

// revisions: migrate mir
//[mir]compile-flags: -Z borrowck=mir
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/closures/diverging-closure.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:oops
// ignore-emscripten no processes

fn main() {
let func = || -> ! {
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/consts/promoted_div_by_zero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// run-fail
// error-pattern: attempt to divide by zero
// ignore-emscripten no processes

fn main() {
let x = &(1 / (1 - 1));
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/fn/expr-fn-panic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:explicit panic
// ignore-emscripten no processes

fn f() -> ! {
panic!()
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/generator/generator-resume-after-panic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:generator resumed after panicking
// ignore-emscripten no processes

// Test that we get the correct message for resuming a panicked generator.

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/hashmap/hashmap-capacity-overflow.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:capacity overflow
// ignore-emscripten no processes

use std::collections::hash_map::HashMap;
use std::usize;
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/if/expr-if-panic-fn.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:explicit panic
// ignore-emscripten no processes

fn f() -> ! {
panic!()
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/if/expr-if-panic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:explicit panic
// ignore-emscripten no processes

fn main() {
let _x = if false {
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/if/if-check-panic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:Number is odd
// ignore-emscripten no processes

fn even(x: usize) -> bool {
if x < 2 {
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/if/if-cond-bot.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:quux
// ignore-emscripten no processes

fn my_err(s: String) -> ! {
println!("{}", s);
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/imports/glob-use-std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// run-fail
// error-pattern:panic works
// ignore-emscripten no processes

use std::*;

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-12920.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:explicit panic
// ignore-emscripten no processes

pub fn main() {
panic!();
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-13202.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:bad input
// ignore-emscripten no processes

fn main() {
Some("foo").unwrap_or(panic!("bad input")).to_string();
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-18576.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:stop
// ignore-emscripten no processes

// #18576
// Make sure that calling an extern function pointer in an unreachable
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-20971.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// run-fail
// error-pattern:Hello, world!
// ignore-emscripten no processes

pub trait Parser {
type Input;
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-23354-2.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:panic evaluated
// ignore-emscripten no processes

#[allow(unused_variables)]
fn main() {
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-23354.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:panic evaluated
// ignore-emscripten no processes

#[allow(unused_variables)]
fn main() {
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-2444.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:explicit panic
// ignore-emscripten no processes

use std::sync::Arc;

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-2470-bounds-check-overflow.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:index out of bounds
// ignore-emscripten no processes

use std::mem;

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-2761.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:custom message
// ignore-emscripten no processes

fn main() {
assert!(false, "custom message");
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-28934.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

// run-fail
// error-pattern:explicit panic
// ignore-emscripten no processes

struct Parser<'i: 't, 't>(&'i u8, &'t u8);

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-29798.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:index out of bounds: the len is 5 but the index is 5
// ignore-emscripten no processes

const fn test(x: usize) -> i32 {
[42;5][x]
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-3029.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:so long
// ignore-emscripten no processes

#![allow(unused_allocation)]
#![allow(unreachable_code)]
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-30380.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

// run-fail
// error-pattern:panicking destructors ftw!
// ignore-emscripten no processes

struct Observer<'a>(&'a mut FilledOnDrop);

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-44216-add-instant.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:overflow
// ignore-emscripten no processes

use std::time::{Instant, Duration};

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-44216-add-system-time.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:overflow
// ignore-emscripten no processes

use std::time::{Duration, SystemTime};

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-44216-sub-instant.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:overflow
// ignore-emscripten no processes

use std::time::{Instant, Duration};

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-44216-sub-system-time.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:overflow
// ignore-emscripten no processes

use std::time::{Duration, SystemTime};

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-51345-2.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern: thread 'main' panicked at 'explicit panic'
// ignore-emscripten no processes

fn main() {
let mut vec = vec![];
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-6458-1.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:explicit panic
// ignore-emscripten no processes

fn foo<T>(t: T) {}
fn main() {
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-811.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:quux
// ignore-emscripten no processes

use std::marker::PhantomData;

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/issues/issue-948.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:beep boop
// ignore-emscripten no processes

#![allow(unused_variables)]

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/loops/for-each-loop-panic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:moop
// ignore-emscripten no processes

fn main() {
for _ in 0_usize..10_usize {
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/macros/assert-as-macro.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:assertion failed: 1 == 2
// ignore-emscripten no processes

fn main() {
assert!(1 == 2);
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/macros/assert-eq-macro-panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// error-pattern:assertion failed: `(left == right)`
// error-pattern: left: `14`
// error-pattern:right: `15`
// ignore-emscripten no processes

fn main() {
assert_eq!(14, 15);
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/macros/assert-macro-explicit.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:panicked at 'assertion failed: false'
// ignore-emscripten no processes

fn main() {
assert!(false);
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/macros/assert-macro-fmt.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:panicked at 'test-assert-fmt 42 rust'
// ignore-emscripten no processes

fn main() {
assert!(false, "test-assert-fmt {} {}", 42, "rust");
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/macros/assert-macro-owned.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:panicked at 'test-assert-owned'
// ignore-emscripten no processes

fn main() {
assert!(false, "test-assert-owned".to_string());
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/macros/assert-macro-static.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:panicked at 'test-assert-static'
// ignore-emscripten no processes

fn main() {
assert!(false, "test-assert-static");
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/macros/assert-ne-macro-panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// error-pattern:assertion failed: `(left != right)`
// error-pattern: left: `14`
// error-pattern:right: `14`
// ignore-emscripten no processes

fn main() {
assert_ne!(14, 14);
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/macros/die-macro-2.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:test
// ignore-emscripten no processes

fn main() {
panic!("test");
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/macros/die-macro-expr.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:test
// ignore-emscripten no processes

fn main() {
let __isize: isize = panic!("test");
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/macros/die-macro-pure.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:test
// ignore-emscripten no processes

fn f() {
panic!("test");
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/macros/unimplemented-macro-panic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:not implemented
// ignore-emscripten no processes

fn main() {
unimplemented!()
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/macros/unreachable-fmt-msg.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:internal error: entered unreachable code: 6 is not prime
// ignore-emscripten no processes

fn main() {
unreachable!("{} is not {}", 6u32, "prime");
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/macros/unreachable-macro-panic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:internal error: entered unreachable code
// ignore-emscripten no processes

fn main() {
unreachable!()
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/macros/unreachable-static-msg.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:internal error: entered unreachable code: uhoh
// ignore-emscripten no processes

fn main() {
unreachable!("uhoh")
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/macros/unreachable.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:internal error: entered unreachable code
// ignore-emscripten no processes

fn main() {
unreachable!()
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/match/expr-match-panic-fn.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:explicit panic
// ignore-emscripten no processes

fn f() -> ! {
panic!()
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/match/expr-match-panic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:explicit panic
// ignore-emscripten no processes

fn main() {
let _x = match true {
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/match/match-bot-panic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// run-fail
// error-pattern:explicit panic
// ignore-emscripten no processes

#![allow(unreachable_code)]
#![allow(unused_variables)]
Expand Down
Loading

0 comments on commit 9a164ff

Please sign in to comment.