2014-12-19 18:55:30 +00:00
|
|
|
#!/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
|
2018-08-21 12:26:04 +00:00
|
|
|
test_merge "#{dir}/1089-2.mkv", :exit_code => :warning
|
2016-04-09 16:08:02 +00:00
|
|
|
test_merge "#{dir}/1089-3.mkv", :result_type => :exit_code
|
2014-12-19 18:55:30 +00:00
|
|
|
|
2015-05-07 20:23:52 +00:00
|
|
|
test_info "#{dir}/1089-1.mkv", :args => "-v -v", :exit_code => :error
|
2014-12-20 16:42:56 +00:00
|
|
|
test "1089-2.mkv" do
|
2015-02-03 07:09:50 +00:00
|
|
|
out = info "#{dir}/1089-2.mkv", :args => "-v -v", :output => :return, :exit_code => :warning
|
2014-12-20 16:42:56 +00:00
|
|
|
out.join("\n").gsub(/\(0x.*?\)/, 'xxx').md5
|
|
|
|
end
|
|
|
|
test_info "#{dir}/1089-3.mkv", :args => "-v -v"
|
2014-12-19 18:55:30 +00:00
|
|
|
|
2014-12-20 16:42:56 +00:00
|
|
|
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
|
2016-04-09 16:08:02 +00:00
|
|
|
test_merge "#{dir}/1096-id:000002,sig:06,src:000000,op:flip2,pos:582.mkv", :result_type => :exit_code
|
2014-12-20 16:42:56 +00:00
|
|
|
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"
|
2014-12-19 18:55:30 +00:00
|
|
|
|
2015-05-07 20:23:52 +00:00
|
|
|
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
|
2014-12-20 16:42:56 +00:00
|
|
|
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"
|