Skip to content

Commit 9691d78

Browse files
committed
Fix test-with-generated-opts
1 parent deb6830 commit 9691d78

File tree

1 file changed

+3
-2
lines changed
  • tools/test-with-generated-opts/src

1 file changed

+3
-2
lines changed

tools/test-with-generated-opts/src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ fn test(task_name: &str, matching: Matching, testsets: &Path, binary: &Path) ->
179179
.with_context(|| format!("Failed to execute {}", binary.display()))?;
180180

181181
child.stdin.as_mut().unwrap().write_all(input.as_ref())?;
182-
let status = child.wait()?;
183-
let stop = Instant::now();
182+
child.stdin.take();
184183
let actual = {
185184
let mut actual = "".to_owned();
186185
child
@@ -191,6 +190,8 @@ fn test(task_name: &str, matching: Matching, testsets: &Path, binary: &Path) ->
191190
.with_context(|| format!("{} outputted invalid UTF-8", binary.display()))?;
192191
actual
193192
};
193+
let status = child.wait()?;
194+
let stop = Instant::now();
194195

195196
let time = (stop - start).as_millis();
196197
let verdict = if status.success() && matching.accepts(&expected, &actual) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy