[all-commits] [llvm/llvm-project] 0b6a1e: [lit] Normalize RLIM_INFINITY to "infinity" in pri...

Miro Hrončok via All-commits all-commits at lists.llvm.org
Mon May 25 16:41:23 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b6a1ef4297bb839fe26041602d32411358e0032
      https://github.com/llvm/llvm-project/commit/0b6a1ef4297bb839fe26041602d32411358e0032
  Author: Miro Hrončok <miro at hroncok.cz>
  Date:   2026-05-25 (Mon, 25 May 2026)

  Changed paths:
    M llvm/utils/lit/tests/Inputs/shtest-ulimit/print_limits.py
    M llvm/utils/lit/tests/shtest-ulimit-nondarwin.py

  Log Message:
  -----------
  [lit] Normalize RLIM_INFINITY to "infinity" in print_limits.py for Python 3.15+ (#190953)

Python 3.15 changed resource.getrlimit() to return the platform's
maximum value (e.g., 18446744073709551615 on 64-bit systems) instead of
-1 for RLIM_INFINITY. This breaks lit tests that expect -1 for unlimited
resource limits.

This patch normalizes the return value to "infinity" when it equals
RLIM_INFINITY to maintain compatibility with existing tests across all
Python versions.

Fixes test failure: shtest-ulimit-nondarwin.py
Expected: RLIMIT_FSIZE=-1
Got: RLIMIT_FSIZE=18446744073709551615

Reference:
https://github.com/python/cpython/commit/0324c726dea702282a0300225e989b19ae23b759
Reference: https://bugzilla.redhat.com/show_bug.cgi?id=2448969

Analysis and testing assisted by AI.

Assisted-by: Claude Sonnet 4.5

---------

Co-authored-by: Alexander Richardson <mail at alexrichardson.me>
Co-authored-by: Tulio Magno Quites Machado Filho <tuliom at quites.com.br>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list