aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorBrian Anderson <[email protected]>2011-05-11 01:12:37 -0400
committerBrian Anderson <[email protected]>2011-05-11 01:38:17 -0400
commite4c32873674ce31f0ace47e7ac08266f3e86d6a0 (patch)
tree2e7738b2985cccaa261cd3819d05b68ce8278cd5 /src/test
parentRemove unnecessary array access from SHA1 (diff)
downloadrust-e4c32873674ce31f0ace47e7ac08266f3e86d6a0.tar.xz
rust-e4c32873674ce31f0ace47e7ac08266f3e86d6a0.zip
Reuse a single work buffer every time the SHA1 message block is processed.
This finally allows the full lib-sha1 test to run in a reasonable amount of time. Was 30s, now 3s. Trims a second or two from stage2/rustc. XFAIL lib-sha1 in stage0 since it will be very slow until the next snapshot.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/lib-sha1.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/test/run-pass/lib-sha1.rs b/src/test/run-pass/lib-sha1.rs
index 2a7e8646..c89eca59 100644
--- a/src/test/run-pass/lib-sha1.rs
+++ b/src/test/run-pass/lib-sha1.rs
@@ -1,5 +1,8 @@
// -*- rust -*-
+// xfail-boot
+// xfail-stage0
+
use std;
import std.SHA1;
@@ -35,18 +38,13 @@ fn main() {
0x3Bu8, 0xD2u8, 0x6Eu8, 0xBAu8, 0xAEu8,
0x4Au8, 0xA1u8, 0xF9u8, 0x51u8, 0x29u8,
0xE5u8, 0xE5u8, 0x46u8, 0x70u8, 0xF1u8)
- )
- // FIXME: This test is disabled because it takes some
- // minutes to run under rustboot+valgrind. It may be
- // possible to reenable once things are more optimized.
- /*,
+ ),
rec(input = a_million_letter_a(),
output = vec(0x34u8, 0xAAu8, 0x97u8, 0x3Cu8, 0xD4u8,
0xC4u8, 0xDAu8, 0xA4u8, 0xF6u8, 0x1Eu8,
0xEBu8, 0x2Bu8, 0xDBu8, 0xADu8, 0x27u8,
0x31u8, 0x65u8, 0x34u8, 0x01u8, 0x6Fu8)
)
- */
);
// Examples from wikipedia