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:
622d817
)
childio: Rename STATUS_1 from vague name
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 31 May 2021 22:56:54 +0000
(23:56 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 31 May 2021 23:14:33 +0000
(
00:14
+0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/childio.rs
patch
|
blob
|
history
diff --git
a/src/childio.rs
b/src/childio.rs
index 7b219ff50b5313efba89f0a5a9c66e85492601bb..98231c68331a441cdef9d2cd14c35c07546bea45 100644
(file)
--- a/
src/childio.rs
+++ b/
src/childio.rs
@@
-195,12
+195,12
@@
pub mod test {
assert_eq!( &w, &[] as &[String] );
}
- static
ENDING
: &str = "exit status: 1";
+ static
STATUS_1
: &str = "exit status: 1";
fn assert_is_status_1(e: &io::Error) {
assert_eq!( e.kind(), ErrorKind::Other );
let es = e.to_string();
- assert!( es.ends_with(
ENDING
), "actually {:?}", es );
+ assert!( es.ends_with(
STATUS_1
), "actually {:?}", es );
}
#[test]
@@
-239,7
+239,7
@@
pub mod test {
});
dbgc!(&w);
assert_eq!( w.len(), 1 );
- assert!( w[0].ends_with(
ENDING
) );
+ assert!( w[0].ends_with(
STATUS_1
) );
}