Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing unittest #4557

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,15 @@ def test_prune(self):
'6fa8c57336628a7d733f684dc9404fbd09020543',
], corpus)

testcases = list(data_types.Testcase.query())
self.assertEqual(1, len(testcases))
self.assertEqual('Null-dereference WRITE', testcases[0].crash_type)
self.assertEqual('Foo\ntest_fuzzer.cc\n', testcases[0].crash_state)
self.assertEqual(1337, testcases[0].crash_revision)
self.assertEqual('test_fuzzer',
testcases[0].get_metadata('fuzzer_binary_name'))
self.assertEqual('label1,label2', testcases[0].get_metadata('issue_labels'))
# TODO(metzman): Re-enable this when we re-enable corpus crash reporting.
# testcases = list(data_types.Testcase.query())
# self.assertEqual(1, len(testcases))
# self.assertEqual('Null-dereference WRITE', testcases[0].crash_type)
# self.assertEqual('Foo\ntest_fuzzer.cc\n', testcases[0].crash_state)
# self.assertEqual(1337, testcases[0].crash_revision)
# self.assertEqual('test_fuzzer',
# testcases[0].get_metadata('fuzzer_binary_name'))
# self.assertEqual('label1,label2', testcases[0].get_metadata('issue_labels'))

today = datetime.datetime.utcnow().date()
# get_coverage_information on test_fuzzer rather than libFuzzer_test_fuzzer
Expand Down
Loading