+ python -tt /usr/share/python-support/python-problem-report/problem_report.py -v Test adding information to an existing report. ... ok Test basic creation and operation. ... ok Test writing and re-decoding a big random file. ... ok Test non-default constructor arguments. ... ok Test ProblemReport iteration. ... ok Test load() with various formatting. ... ok Test reading, modifying fields, and writing back. ... ok Test reading a report with binary data. ... ok Test reading a report with binary data (legacy bzip2 compression). ... ok Test various error conditions. ... ok Test writing and a big random file with a size limit key. ... ok Test new_keys() and write() with only_new=True. ... ok Test write() and proper formatting. ... ok Test write() with appending to an existing file. ... ok Test writing a report with binary file data. ... ok Test writing a report with a pointer to a file-like object. ... ok Test write_mime() for binary values and file references. ... ok Test write_mime() with extra headers. ... ok Test write_mime() for text values. ... ok ---------------------------------------------------------------------- Ran 19 tests in 3.181s OK + python -tt /usr/share/python-support/python-apport/apport/fileutils.py -v Test check_files_md5(). ... ok Test delete_report(). ... ok Test find_file_package(). ... ok Test find_package_desktopfile(). ... ok Test get_all_reports(). ... ok Test get_recent_crashes(). ... ok Test get_all_system_reports() and get_new_system_reports(). ... ok Test likely_packaged(). ... ok Test make_report_path(). ... ok Test get_new_reports() and seen_report(). ... ok ---------------------------------------------------------------------- Ran 10 tests in 3.637s OK + python -tt /usr/share/python-support/python-apport/apport/report.py -v Test add_gdb_info() with core dump file reference. ... /usr/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status FAIL Test add_gdb_info() with inline core dump. ... /usr/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status FAIL Test add_gdb_info() with a script. ... Failed to read a valid object file image from memory. warning: Memory read failed for corefile section, 4096 bytes at 0xffffe000. FAIL Test add_hooks_info(). ... ok Test add_os_info(). ... ok Test add_package_info(). ... ok Test add_proc_info(). ... ok Test add_user_info(). ... ok Test _check_interpreted(). ... ok Test crash_signature(). ... ok Test _gen_stacktrace_top(). ... ok Test has_useful_stacktrace(). ... ok Test mark_ignore() and check_ignored(). ... ok Test obsolete_packages(). ... ok Test search_bug_patterns(). ... ok Test standard_title(). ... ok ====================================================================== FAIL: Test add_gdb_info() with core dump file reference. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/share/python-support/python-apport/apport/report.py", line 1133, in test_add_gdb_info pr = self._generate_sigsegv_report() File "/usr/share/python-support/python-apport/apport/report.py", line 1085, in _generate_sigsegv_report assert subprocess.call(['gcc', '-g', 'crash.c', '-o', 'crash']) == 0 AssertionError ====================================================================== FAIL: Test add_gdb_info() with inline core dump. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/share/python-support/python-apport/apport/report.py", line 1141, in test_add_gdb_info_load self._generate_sigsegv_report(rep) File "/usr/share/python-support/python-apport/apport/report.py", line 1085, in _generate_sigsegv_report assert subprocess.call(['gcc', '-g', 'crash.c', '-o', 'crash']) == 0 AssertionError ====================================================================== FAIL: Test add_gdb_info() with a script. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/share/python-support/python-apport/apport/report.py", line 1179, in test_add_gdb_info_script self.assert_('libc.so' in pr['Stacktrace']) AssertionError ---------------------------------------------------------------------- Ran 16 tests in 3.698s FAILED (failures=3)