summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-12-12 06:55:49 -0500
committerAndrew Gallant <jamslam@gmail.com>2016-12-12 06:55:49 -0500
commitbb70f967437279e49fb87df23ae567c276e4cc33 (patch)
tree1aef3d1bf4b4a93dcf4a0673a68d3ae8726283b4 /tests
parent6d346a09deefcd95bb15486b0288176099eb4469 (diff)
Fix a non-termination bug.
This was a very silly bug. Instead of creating a particular atomic once and cloning it, we created a new value for each worker. Fixes #279
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index c21fffc9..e00da84e 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -968,6 +968,15 @@ clean!(regression_256_j1, "test", "foo", |wd: WorkDir, mut cmd: Command| {
assert_eq!(lines, "foo/baz:test\n");
});
+// See: https://github.com/BurntSushi/ripgrep/issues/279
+clean!(regression_279, "test", ".", |wd: WorkDir, mut cmd: Command| {
+ wd.create("foo", "test");
+ cmd.arg("-q");
+
+ let lines: String = wd.stdout(&mut cmd);
+ assert_eq!(lines, "");
+});
+
// See: https://github.com/BurntSushi/ripgrep/issues/7
sherlock!(feature_7, "-fpat", "sherlock", |wd: WorkDir, mut cmd: Command| {
wd.create("pat", "Sherlock\nHolmes");