File tree Expand file tree Collapse file tree 2 files changed +29
-3
lines changed
trunk/src/libstd/unstable Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 76a59fd6e2d5c8c42193c047fd5eaba982d499f7
2
+ refs/heads/master: 75d92dbabe5bab3a1ca85c305a3773bca2e38145
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 6e7f170fedd3c526a643c0b2d13863acd982be02
5
5
refs/heads/try: a97642026c18a624ff6ea01075dd9550f8ed07ff
Original file line number Diff line number Diff line change @@ -459,15 +459,15 @@ mod test {
459
459
use rt:: thread:: Thread ;
460
460
461
461
#[ test]
462
- fn somke_lock ( ) {
462
+ fn smoke_lock ( ) {
463
463
static mut lock: Mutex = MUTEX_INIT ;
464
464
unsafe {
465
465
let _guard = lock. lock ( ) ;
466
466
}
467
467
}
468
468
469
469
#[ test]
470
- fn somke_cond ( ) {
470
+ fn smoke_cond ( ) {
471
471
static mut lock: Mutex = MUTEX_INIT ;
472
472
unsafe {
473
473
let mut guard = lock. lock ( ) ;
@@ -482,6 +482,32 @@ mod test {
482
482
}
483
483
}
484
484
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
+
485
511
#[ test]
486
512
fn destroy_immediately ( ) {
487
513
unsafe {
You can’t perform that action at this time.
0 commit comments