mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-27 05:14:47 +00:00
db45155c02
Some of the sub-tests in 449 have to work with uninitialized data due to
the file structure errors in the source files. Therefore the data's
content may actually change from run to run. Such a change was triggered
with change f82360d
. Therefore only test whether or not muxing succeeds
for those sub-tests, not what the actual content looks like.
30 lines
1.5 KiB
Ruby
Executable File
30 lines
1.5 KiB
Ruby
Executable File
#!/usr/bin/ruby -w
|
|
|
|
# T_449segfaults_assertions
|
|
describe "mkvmerge & mkvinfo / segfaults and assertions"
|
|
|
|
dir = "data/segfaults-assertions"
|
|
|
|
test_merge "#{dir}/1089-1.mkv", :exit_code => :error
|
|
test_merge "#{dir}/1089-2.mkv", :exit_code => :error
|
|
test_merge "#{dir}/1089-3.mkv", :result_type => :exit_code
|
|
|
|
test_info "#{dir}/1089-1.mkv", :args => "-v -v", :exit_code => :error
|
|
test "1089-2.mkv" do
|
|
out = info "#{dir}/1089-2.mkv", :args => "-v -v", :output => :return, :exit_code => :warning
|
|
out.join("\n").gsub(/\(0x.*?\)/, 'xxx').md5
|
|
end
|
|
test_info "#{dir}/1089-3.mkv", :args => "-v -v"
|
|
|
|
test_merge "#{dir}/1096-id:000000,sig:06,src:000000,op:flip1,pos:0.mkv", :exit_code => :error
|
|
test_merge "#{dir}/1096-id:000001,sig:06,src:000000,op:flip1,pos:0.mkv", :exit_code => :error
|
|
test_merge "#{dir}/1096-id:000002,sig:06,src:000000,op:flip2,pos:582.mkv", :result_type => :exit_code
|
|
test_merge "#{dir}/1096-id:000003,sig:06,src:000000,op:flip2,pos:606.mkv"
|
|
test_merge "#{dir}/1096-id:000004,sig:06,src:000000,op:flip4,pos:582.mkv"
|
|
|
|
test_info "#{dir}/1096-id:000000,sig:06,src:000000,op:flip1,pos:0.mkv", :args => "-v -v", :exit_code => :error
|
|
test_info "#{dir}/1096-id:000001,sig:06,src:000000,op:flip1,pos:0.mkv", :args => "-v -v", :exit_code => :error
|
|
test_info "#{dir}/1096-id:000002,sig:06,src:000000,op:flip2,pos:582.mkv", :args => "-v -v"
|
|
test_info "#{dir}/1096-id:000003,sig:06,src:000000,op:flip2,pos:606.mkv", :args => "-v -v"
|
|
test_info "#{dir}/1096-id:000004,sig:06,src:000000,op:flip4,pos:582.mkv", :args => "-v -v"
|