summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-11-17 20:29:53 -0500
committerAndrew Gallant <jamslam@gmail.com>2016-11-17 20:30:18 -0500
commite37f783fc00e9fa0e27450315c1e756918294e04 (patch)
treed46a16d037b838ed6ae95ac073a355b285afb4e9
parent495e13cc615b41ad16804455335d53dd46b3ae25 (diff)
Fix issue number mixup.
Thanks @bluss!
-rw-r--r--tests/tests.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index 2d6f2d31..bdafb298 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -896,22 +896,15 @@ clean!(regression_206, "test", ".", |wd: WorkDir, mut cmd: Command| {
});
// See: https://github.com/BurntSushi/ripgrep/issues/210
-clean!(regression_210, "test", ".", |wd: WorkDir, mut cmd: Command| {
- wd.create_dir("foo");
- cmd.arg("--ignore-file").arg("foo");
- wd.assert_err(&mut cmd);
-});
-
-// See: https://github.com/BurntSushi/ripgrep/issues/228
#[cfg(unix)]
#[test]
-fn regression_228() {
+fn regression_210() {
use std::ffi::OsStr;
use std::os::unix::ffi::OsStrExt;
let badutf8 = OsStr::from_bytes(&b"foo\xffbar"[..]);
- let wd = WorkDir::new("regression_228");
+ let wd = WorkDir::new("regression_210");
let mut cmd = wd.command();
wd.create(badutf8, "test");
cmd.arg("-H").arg("test").arg(badutf8);
@@ -920,6 +913,13 @@ fn regression_228() {
assert_eq!(out.stdout, b"foo\xffbar:test\n".to_vec());
}
+// See: https://github.com/BurntSushi/ripgrep/issues/228
+clean!(regression_228, "test", ".", |wd: WorkDir, mut cmd: Command| {
+ wd.create_dir("foo");
+ cmd.arg("--ignore-file").arg("foo");
+ wd.assert_err(&mut cmd);
+});
+
// See: https://github.com/BurntSushi/ripgrep/issues/7
sherlock!(feature_7, "-fpat", "sherlock", |wd: WorkDir, mut cmd: Command| {
wd.create("pat", "Sherlock\nHolmes");