test_touch_set_date_year_zero failed on 32 bit Linux

Aperta
#16,533 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à
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
tooling

Direzione di ricerca

Start at the failing assertion in tests/by-util/test_touch.rs around line 679 and read the surrounding year-zero test to see which timestamp it passes to touch. Then follow that value into the touch implementation under src/uu/touch/ and the time-setting call that returns EOVERFLOW on a 32-bit time_t. You will need a 32-bit Linux target (e.g. i686-unknown-linux-gnu) to reproduce; done means the test passes there without changing behaviour on 64-bit.

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

Descrizione

U - touch
thread 'test_touch::test_touch_set_date_year_zero' panicked at tests/by-util/test_touch.rs:679:10:
Command was expected to succeed. code: 1
stdout = 
 stderr = touch: setting times of 'test_touch_year_zero': Value too large for defined data type
Lingua principale
Rust
Stelle
24.4k
Fork
2.2k
Merge medio
2g 23h
PR unite (30g)
402

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 uutils/coreutils

Tutte le issue di uutils/coreutils

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.