Most integration tests assert nothing (crash test passes without finding a crash)

Aperta
#436 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
testing-qa

Direzione di ricerca

Start with tests/x86_64_magic_crash_latest.rs at the linked lines and compare its outcome checks with tests/x86_64_edk2_timeout_latest.rs. Then inspect pure functions such as the tokenizer and comparison arithmetic for unit test opportunities. Done means the crash test verifies that a solution was found and selected untested behavior has meaningful regression tests; the issue notes that SIMICS reproduction has not been done.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Where

Problem
The test prints output and returns Ok(()); it passes whenever 100 iterations finish before the watchdog. Only the timeout, exception-metadata and null-string tests assert outcomes. Untested areas: src/arch/arm.rs, src/arch/aarch64.rs, all Windows support, source coverage, execution traces, use_initial_as_corpus, keep_all_corpus, start_without_buffer, start_with_buffer_ptr_size_ptr_value, breakpoint solutions; no unit tests in src/.

Impact
Regressions in solution detection go unnoticed.

Suggested fix
Assert solutions exist (reuse the listing in tests/x86_64_edk2_timeout_latest.rs), and add unit tests for pure functions (tokenizer, cmp arithmetic).

Status
Confirmed by reading the code at 79972db. Found by reading the code; not reproduced under SIMICS.

Lingua principale
Rust
Stelle
335
Fork
26
Merge medio
1g 50m
PR unite (30g)
12

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di intel/tsffs

Tutte le issue di intel/tsffs

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.