2020-09-21 11:32:56 +00:00
|
|
|
#!/usr/bin/ruby -w
|
|
|
|
|
|
|
|
# T_710fuzzying
|
|
|
|
describe "mkvmerge / issues found by fuzzying"
|
|
|
|
|
2021-07-07 13:30:43 +00:00
|
|
|
skip_if $is_windows
|
|
|
|
|
2020-09-23 10:14:46 +00:00
|
|
|
Dir["data/segfaults-assertions/fuzzying/**/id*"].each do |file|
|
2020-09-21 17:34:39 +00:00
|
|
|
test file do
|
|
|
|
expected_exit_code = file.gsub(%r{.*/([012])/.*}, '\1').to_i
|
2020-09-21 15:23:18 +00:00
|
|
|
|
2020-09-21 17:34:39 +00:00
|
|
|
_, actual_exit_code = *merge(file, :exit_code => expected_exit_code, :no_variable_data => true)
|
|
|
|
|
|
|
|
actual_exit_code == expected_exit_code ? "ok" : "bad"
|
2020-09-21 15:23:18 +00:00
|
|
|
end
|
2020-09-21 11:32:56 +00:00
|
|
|
end
|