chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d30caee
)
path resolution tests: Tidy direct use of su_rc to su()
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 3 May 2021 12:03:22 +0000
(13:03 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 3 May 2021 12:03:22 +0000
(13:03 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
apitest/at-otter.rs
patch
|
blob
|
history
diff --git
a/apitest/at-otter.rs
b/apitest/at-otter.rs
index 7cc94032176bdaa30984383410aadcf8f680e40c..aa4afc3e6fdbf7c66cda209291a0770a7c671ff5 100644
(file)
--- a/
apitest/at-otter.rs
+++ b/
apitest/at-otter.rs
@@
-203,7
+203,7
@@
impl Ctx {
pub fn chdir_root<F>(&mut self, f: F)
where F: FnOnce(&mut Self) -> Result<(),AE>
{
- let tmp =
&(*self.su_rc).borrow
().ds.abstmp.clone();
+ let tmp =
self.su
().ds.abstmp.clone();
env::set_current_dir("/").expect("cd /");
self.prctx = PathResolveContext::RelativeTo(tmp.clone());
f(self).expect("run test");