From 8ff308740c33479019e137fe2ece5bb5372c9ecb Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 7 Apr 2016 20:54:22 +0200 Subject: [PATCH] Fix test on Rust Stable. https://github.com/rust-lang/rust/issues/32801 --- Makefile | 2 +- tests/common/util.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 19bc50449..63467fe4b 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ BUILDDIR := $(BASEDIR)/target/${PROFILE}/ PKG_BUILDDIR := $(BUILDDIR)/deps/ BUSYBOX_ROOT := $(BASEDIR)/tmp/ -BUSYBOX_VER := 1.24.1 +BUSYBOX_VER := 1.22.0 BUSYBOX_SRC:=$(BUSYBOX_ROOT)/busybox-$(BUSYBOX_VER)/ # Possible programs diff --git a/tests/common/util.rs b/tests/common/util.rs index 0340329ae..540cf5b5f 100755 --- a/tests/common/util.rs +++ b/tests/common/util.rs @@ -246,7 +246,7 @@ impl AtPath { pub fn append(&self, name: &str, contents: &str) { log_info("open(append)", self.plus_as_string(name)); - let mut f = OpenOptions::new().append(true).open(self.plus(name)).unwrap(); + let mut f = OpenOptions::new().write(true).append(true).open(self.plus(name)).unwrap(); let _ = f.write(contents.as_bytes()); }