mkvtoolnix/tests/test-668flush_on_close.rb
Moritz Bunkus 901e49b049
mm_file_io_c: don't flush on close by default
When closing files that were opened for writing, cached data will not
be flushed to storage automatically anymore. This reverts the
workaround implemented for #2469. A new option was added to both
programs (`--flush-on-close`) that re-enables flushing for people who
are affected by data loss such as described in #2469.

The reason is that automatic flushing causes long delays in processing
queues when the output by mkvmerge/mkvextract isn't the final product but
just an intermediate result to be processed further.

Implements #2480.
2019-01-10 22:05:34 +01:00

10 lines
271 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_668flush_on_close
describe "mkvmerge, mkvextract / flushing on close"
test_merge "data/subtitles/srt/ven.srt", :args => "--flush-on-close"
test "extraction" do
extract "data/mkv/complex.mkv", 8 => tmp, :args => "--flush-on-close"
hash_tmp
end