Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
4c09c2cb
Kaydet (Commit)
4c09c2cb
authored
Nis 30, 2013
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #17712: Fix test_gdb failures on Ubuntu 13.04.
üst
e1419e80
81641d6e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
21 deletions
+26
-21
test_gdb.py
Lib/test/test_gdb.py
+24
-21
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_gdb.py
Dosyayı görüntüle @
4c09c2cb
...
@@ -145,29 +145,32 @@ class DebuggerTests(unittest.TestCase):
...
@@ -145,29 +145,32 @@ class DebuggerTests(unittest.TestCase):
# Use "args" to invoke gdb, capturing stdout, stderr:
# Use "args" to invoke gdb, capturing stdout, stderr:
out
,
err
=
run_gdb
(
*
args
,
PYTHONHASHSEED
=
'0'
)
out
,
err
=
run_gdb
(
*
args
,
PYTHONHASHSEED
=
'0'
)
# Ignore some noise on stderr due to the pending breakpoint:
errlines
=
err
.
splitlines
()
err
=
err
.
replace
(
'Function "
%
s" not defined.
\n
'
%
breakpoint
,
''
)
unexpected_errlines
=
[]
# Ignore some other noise on stderr (http://bugs.python.org/issue8600)
err
=
err
.
replace
(
"warning: Unable to find libthread_db matching"
# Ignore some benign messages on stderr.
" inferior's thread library, thread debugging will"
ignore_patterns
=
(
" not be available.
\n
"
,
'Function "
%
s" not defined.'
%
breakpoint
,
''
)
"warning: no loadable sections found in added symbol-file"
err
=
err
.
replace
(
"warning: Cannot initialize thread debugging"
" system-supplied DSO"
,
" library: Debugger service failed
\n
"
,
"warning: Unable to find libthread_db matching"
''
)
" inferior's thread library, thread debugging will"
err
=
err
.
replace
(
'warning: Could not load shared library symbols for '
" not be available."
,
'linux-vdso.so.1.
\n
'
"warning: Cannot initialize thread debugging"
'Do you need "set solib-search-path" or '
" library: Debugger service failed"
,
'"set sysroot"?
\n
'
,
'warning: Could not load shared library symbols for '
''
)
'linux-vdso.so'
,
err
=
err
.
replace
(
'warning: Could not load shared library symbols for '
'warning: Could not load shared library symbols for '
'linux-gate.so.1.
\n
'
'linux-gate.so'
,
'Do you need "set solib-search-path" or '
'Do you need "set solib-search-path" or '
'"set sysroot"?
\n
'
,
'"set sysroot"?'
,
''
)
)
for
line
in
errlines
:
if
not
line
.
startswith
(
ignore_patterns
):
unexpected_errlines
.
append
(
line
)
# Ensure no unexpected error messages:
# Ensure no unexpected error messages:
self
.
assertEqual
(
err
,
''
)
self
.
assertEqual
(
unexpected_errlines
,
[]
)
return
out
return
out
def
get_gdb_repr
(
self
,
source
,
def
get_gdb_repr
(
self
,
source
,
...
...
Misc/NEWS
Dosyayı görüntüle @
4c09c2cb
...
@@ -176,6 +176,8 @@ Library
...
@@ -176,6 +176,8 @@ Library
Tests
Tests
-----
-----
-
Issue
#
17712
:
Fix
test_gdb
failures
on
Ubuntu
13.04
.
-
Issue
#
17835
:
Fix
test_io
when
the
default
OS
pipe
buffer
size
is
larger
-
Issue
#
17835
:
Fix
test_io
when
the
default
OS
pipe
buffer
size
is
larger
than
one
million
bytes
.
than
one
million
bytes
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment