From 28b825d8469c5b6f92f367cb4aae2ea2607bc886 Mon Sep 17 00:00:00 2001 From: Haitao Li Date: Tue, 20 Dec 2011 13:31:31 +0800 Subject: test: Remove 'error:' from error pattern May include ansi escape code for color rendering on certain terminal. --- src/test/compile-fail/cap-clause-both-copy-and-move.rs | 4 ++-- src/test/compile-fail/cap-clause-double-copy.rs | 2 +- src/test/compile-fail/cap-clause-double-move.rs | 2 +- src/test/compile-fail/cap-clause-move-upvar.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/compile-fail/cap-clause-both-copy-and-move.rs b/src/test/compile-fail/cap-clause-both-copy-and-move.rs index 0758ad67bd5..96ccf1c60e5 100644 --- a/src/test/compile-fail/cap-clause-both-copy-and-move.rs +++ b/src/test/compile-fail/cap-clause-both-copy-and-move.rs @@ -1,5 +1,5 @@ -// error-pattern:error: Variable 'x' captured more than once +// error-pattern:Variable 'x' captured more than once fn main() { let x = 5; let y = sendfn[move x; copy x]() -> int { x }; -} \ No newline at end of file +} diff --git a/src/test/compile-fail/cap-clause-double-copy.rs b/src/test/compile-fail/cap-clause-double-copy.rs index 2e1008bad1c..317cc21fd7b 100644 --- a/src/test/compile-fail/cap-clause-double-copy.rs +++ b/src/test/compile-fail/cap-clause-double-copy.rs @@ -1,4 +1,4 @@ -// error-pattern:error: Variable 'x' captured more than once +// error-pattern:Variable 'x' captured more than once fn main() { let x = 5; let y = sendfn[copy x, x]() -> int { x }; diff --git a/src/test/compile-fail/cap-clause-double-move.rs b/src/test/compile-fail/cap-clause-double-move.rs index 89e1a4a5a51..d985642d7ba 100644 --- a/src/test/compile-fail/cap-clause-double-move.rs +++ b/src/test/compile-fail/cap-clause-double-move.rs @@ -1,4 +1,4 @@ -// error-pattern: error: Variable 'x' captured more than once +// error-pattern:Variable 'x' captured more than once fn main() { let x = 5; let y = sendfn[move x, x]() -> int { x }; diff --git a/src/test/compile-fail/cap-clause-move-upvar.rs b/src/test/compile-fail/cap-clause-move-upvar.rs index 33b0a67a7e4..9a9a4379576 100644 --- a/src/test/compile-fail/cap-clause-move-upvar.rs +++ b/src/test/compile-fail/cap-clause-move-upvar.rs @@ -1,4 +1,4 @@ -// error-pattern: error: Upvars (like 'x') cannot be moved into a closure +// error-pattern:Upvars (like 'x') cannot be moved into a closure fn main() { let x = 5; let _y = sendfn[move x]() -> int { -- cgit 1.4.1-3-g733a5