mirror of
https://github.com/facebook/zstd.git
synced 2025-07-29 11:21:22 +03:00
improved test mode -t
The test mode do no longer open a file `/dev/null` nor write anything to output. This is supposed to be more efficient than writing to `/dev/null`, and more universal too : the previous method was failing on Windows.
This commit is contained in:
@ -1120,7 +1120,7 @@ int main(int argCount, const char* argv[])
|
||||
}
|
||||
|
||||
#ifndef ZSTD_NODECOMPRESS
|
||||
if (operation==zom_test) { outFileName=nulmark; FIO_setRemoveSrcFile(prefs, 0); } /* test mode */
|
||||
if (operation==zom_test) { FIO_setTestMode(prefs, 1); outFileName=nulmark; FIO_setRemoveSrcFile(prefs, 0); } /* test mode */
|
||||
#endif
|
||||
|
||||
/* No input filename ==> use stdin and stdout */
|
||||
|
Reference in New Issue
Block a user