[pzstd] Fix test mode for streaming input
diff --git a/contrib/pzstd/Options.cpp b/contrib/pzstd/Options.cpp
index ece8c07..18c069e 100644
--- a/contrib/pzstd/Options.cpp
+++ b/contrib/pzstd/Options.cpp
@@ -303,6 +303,12 @@
} // while (*options != 0);
} // for (int i = 1; i < argc; ++i);
+ // Set options for test mode
+ if (test) {
+ outputFile = nullOutput;
+ keepSource = true;
+ }
+
// Input file defaults to standard input if not provided.
if (localInputFiles.empty()) {
localInputFiles.emplace_back(kStdIn);
@@ -399,11 +405,6 @@
verbosity = 1;
}
- // Set options for test mode
- if (test) {
- outputFile = nullOutput;
- keepSource = true;
- }
return Status::Success;
}