Skip to content

Commit 9d75629

Browse files
committed
---
yaml --- r: 108338 b: refs/heads/dist-snap c: 75d92db h: refs/heads/master v: v3
1 parent aa31d92 commit 9d75629

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 76a59fd6e2d5c8c42193c047fd5eaba982d499f7
9+
refs/heads/dist-snap: 75d92dbabe5bab3a1ca85c305a3773bca2e38145
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/libstd/unstable/mutex.rs

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,15 +459,15 @@ mod test {
459459
use rt::thread::Thread;
460460

461461
#[test]
462-
fn somke_lock() {
462+
fn smoke_lock() {
463463
static mut lock: Mutex = MUTEX_INIT;
464464
unsafe {
465465
let _guard = lock.lock();
466466
}
467467
}
468468

469469
#[test]
470-
fn somke_cond() {
470+
fn smoke_cond() {
471471
static mut lock: Mutex = MUTEX_INIT;
472472
unsafe {
473473
let mut guard = lock.lock();
@@ -482,6 +482,32 @@ mod test {
482482
}
483483
}
484484

485+
#[test]
486+
fn smoke_lock_noguard() {
487+
static mut lock: Mutex = MUTEX_INIT;
488+
unsafe {
489+
lock.lock_noguard();
490+
lock.unlock_noguard();
491+
}
492+
}
493+
494+
#[test]
495+
fn smoke_cond_noguard() {
496+
static mut lock: Mutex = MUTEX_INIT;
497+
unsafe {
498+
lock.lock_noguard();
499+
let t = Thread::start(proc() {
500+
lock.lock_noguard();
501+
lock.signal_noguard();
502+
lock.unlock_noguard();
503+
});
504+
lock.wait_noguard();
505+
lock.unlock_noguard();
506+
507+
t.join();
508+
}
509+
}
510+
485511
#[test]
486512
fn destroy_immediately() {
487513
unsafe {

0 commit comments

Comments
 (0)