File tree Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 124eb2119c78651cfaaa7a046a101fa2e20f83ca
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: ba3ce3262749a400e290d19161849c5351c1e726
4
+ refs/heads/snap-stage3: 507414daf9ed9a91ba04e3715f02353e31411a0c
5
5
refs/heads/try: ac820906c0e53eab79a98ee64f7231f57c3887b4
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change 823
823
index2=" ${CFG_SRC_DIR} src/llvm/.git/index"
824
824
for index in ${index1} ${index2}
825
825
do
826
- config_status=" ${LLVM_BUILD_DIR} /config.status"
826
+ config_status=" ${CFG_BUILD_DIR} llvm/ $t /config.status"
827
827
if test -e ${index} -a \
828
828
-e ${config_status} -a \
829
829
${config_status} -nt ${index}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ clean-misc:
50
50
$(Q)rm -f $(RUSTLLVM_LIB_OBJS) $(RUSTLLVM_OBJS_OBJS) $(RUSTLLVM_DEF)
51
51
$(Q)rm -Rf $(DOCS)
52
52
$(Q)rm -Rf $(GENERATED)
53
- $(Q)rm -f tmp/*
53
+ $(Q)rm -Rf tmp/*
54
54
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz dist
55
55
$(Q)rm -Rf $(foreach ext, \
56
56
html aux cp fn ky log pdf pg toc tp vr cps, \
Original file line number Diff line number Diff line change @@ -448,11 +448,21 @@ impl MatchOptions {
448
448
#[cfg(test)]
449
449
mod test {
450
450
use std::{io, os, unstable};
451
+ use std::unstable::finally::Finally;
451
452
use super::*;
453
+ use tempfile;
452
454
453
455
#[test]
454
456
fn test_relative_pattern() {
455
457
458
+ fn change_then_remove(p: &Path, f: &fn()) {
459
+ do (|| {
460
+ unstable::change_dir_locked(p, || f());
461
+ }).finally {
462
+ os::remove_dir_recursive(p);
463
+ }
464
+ }
465
+
456
466
fn mk_file(path: &str, directory: bool) {
457
467
if directory {
458
468
os::make_dir(&Path(path), 0xFFFF);
@@ -469,10 +479,10 @@ mod test {
469
479
glob(pattern).collect()
470
480
}
471
481
472
- mk_file("tmp", true );
473
- mk_file("tmp/glob-tests", true );
482
+ let root = tempfile::mkdtemp(&os::tmpdir(), "glob-tests" );
483
+ let root = root.expect("Should have created a temp directory" );
474
484
475
- do unstable::change_dir_locked(&Path("tmp/glob-tests") ) {
485
+ do change_then_remove(&root ) {
476
486
477
487
mk_file("aaa", true);
478
488
mk_file("aaa/apple", true);
You can’t perform that action at this time.
0 commit comments