run-tests.php: Add a flag similar to --asan that skips tests when run under Valgrind
Nessuno ha ancora preso questa issue.
- Lingua principale
- C
- Stelle
- 40.4k
- Fork
- 8.1k
- Merge medio
- 2g 13h
- PR unite (30g)
- 96
Descrizione
Description
I just ran 11k tests under Valgrind to try and find issues with one of my big PRs, and any test excepting an OOM failure will either time out or use all the memory before being killed.
It would be great if those could be skipped and not accidentally triggered.
Some relevant tests:
ext/standard/tests/gh14643_longname.phptZend/tests/bug79836_4.phpttests/basic/bug67198.phpt(maybe)tests/basic/enable_post_data_reading_05.phpt(maybe)
Other tests are those opening PHP procs and timing out:
ext/standard/tests/file/proc_open01.phptext/standard/tests/http/gh11274.phptext/standard/tests/streams/bug64433.phptext/standard/tests/url/get_headers_error_003.phpt
And some tests seem to be bogus with Valgrind or an issue that we cannot fix:
ext/standard/tests/mail/mail_basic2.phptext/standard/tests/mail/mail_variation2.phpt
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia in run-tests.php leggendo come viene analizzato e applicato il flag esistente --asan. Esegui i test .phpt elencati sotto Valgrind per confermare i casi problematici, quindi verifica che il nuovo flag relativo a Valgrind salti i test previsti senza influire sulle normali esecuzioni dei test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- php
- Ambito
- testing-qa
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 50/100