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
177b8eb3
Kaydet (Commit)
177b8eb3
authored
Eyl 02, 2015
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
test_eintr: try to debug hang on FreeBSD
üst
e801c360
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
eintr_tester.py
Lib/test/eintrdata/eintr_tester.py
+8
-0
No files found.
Lib/test/eintrdata/eintr_tester.py
Dosyayı görüntüle @
177b8eb3
...
@@ -8,6 +8,7 @@ Signals are generated in-process using setitimer(ITIMER_REAL), which allows
...
@@ -8,6 +8,7 @@ Signals are generated in-process using setitimer(ITIMER_REAL), which allows
sub-second periodicity (contrarily to signal()).
sub-second periodicity (contrarily to signal()).
"""
"""
import
faulthandler
import
io
import
io
import
os
import
os
import
select
import
select
...
@@ -36,10 +37,17 @@ class EINTRBaseTest(unittest.TestCase):
...
@@ -36,10 +37,17 @@ class EINTRBaseTest(unittest.TestCase):
cls
.
orig_handler
=
signal
.
signal
(
signal
.
SIGALRM
,
lambda
*
args
:
None
)
cls
.
orig_handler
=
signal
.
signal
(
signal
.
SIGALRM
,
lambda
*
args
:
None
)
signal
.
setitimer
(
signal
.
ITIMER_REAL
,
cls
.
signal_delay
,
signal
.
setitimer
(
signal
.
ITIMER_REAL
,
cls
.
signal_delay
,
cls
.
signal_period
)
cls
.
signal_period
)
if
hasattr
(
faulthandler
,
'dump_traceback_later'
):
# Most tests take less than 30 seconds, so 15 minutes should be
# enough. dump_traceback_later() is implemented with a thread, but
# pthread_sigmask() is used to mask all signaled on this thread.
faulthandler
.
dump_traceback_later
(
15
*
60
,
exit
=
True
)
@classmethod
@classmethod
def
stop_alarm
(
cls
):
def
stop_alarm
(
cls
):
signal
.
setitimer
(
signal
.
ITIMER_REAL
,
0
,
0
)
signal
.
setitimer
(
signal
.
ITIMER_REAL
,
0
,
0
)
if
hasattr
(
faulthandler
,
'cancel_dump_traceback_later'
):
faulthandler
.
cancel_dump_traceback_later
()
@classmethod
@classmethod
def
tearDownClass
(
cls
):
def
tearDownClass
(
cls
):
...
...
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