Skip to content

Commit d8552df

Browse files
committed
---
yaml --- r: 79434 b: refs/heads/snap-stage3 c: 507414d h: refs/heads/master v: v3
1 parent d4b8dc2 commit d8552df

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 124eb2119c78651cfaaa7a046a101fa2e20f83ca
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: ba3ce3262749a400e290d19161849c5351c1e726
4+
refs/heads/snap-stage3: 507414daf9ed9a91ba04e3715f02353e31411a0c
55
refs/heads/try: ac820906c0e53eab79a98ee64f7231f57c3887b4
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ do
823823
index2="${CFG_SRC_DIR}src/llvm/.git/index"
824824
for index in ${index1} ${index2}
825825
do
826-
config_status="${LLVM_BUILD_DIR}/config.status"
826+
config_status="${CFG_BUILD_DIR}llvm/$t/config.status"
827827
if test -e ${index} -a \
828828
-e ${config_status} -a \
829829
${config_status} -nt ${index}

branches/snap-stage3/mk/clean.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ clean-misc:
5050
$(Q)rm -f $(RUSTLLVM_LIB_OBJS) $(RUSTLLVM_OBJS_OBJS) $(RUSTLLVM_DEF)
5151
$(Q)rm -Rf $(DOCS)
5252
$(Q)rm -Rf $(GENERATED)
53-
$(Q)rm -f tmp/*
53+
$(Q)rm -Rf tmp/*
5454
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz dist
5555
$(Q)rm -Rf $(foreach ext, \
5656
html aux cp fn ky log pdf pg toc tp vr cps, \

branches/snap-stage3/src/libextra/glob.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,21 @@ impl MatchOptions {
448448
#[cfg(test)]
449449
mod test {
450450
use std::{io, os, unstable};
451+
use std::unstable::finally::Finally;
451452
use super::*;
453+
use tempfile;
452454
453455
#[test]
454456
fn test_relative_pattern() {
455457
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+
456466
fn mk_file(path: &str, directory: bool) {
457467
if directory {
458468
os::make_dir(&Path(path), 0xFFFF);
@@ -469,10 +479,10 @@ mod test {
469479
glob(pattern).collect()
470480
}
471481
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");
474484
475-
do unstable::change_dir_locked(&Path("tmp/glob-tests")) {
485+
do change_then_remove(&root) {
476486
477487
mk_file("aaa", true);
478488
mk_file("aaa/apple", true);

0 commit comments

Comments
 (0)