[all-commits] [llvm/llvm-project] 86cdbe: [lldb/test] Tolerate ENOENT when cleaning per-test...

Med Ismail Bennani via All-commits all-commits at lists.llvm.org
Wed Jun 10 13:04:02 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 86cdbe62070fc4699696d6652c7a28553cff3703
      https://github.com/llvm/llvm-project/commit/86cdbe62070fc4699696d6652c7a28553cff3703
  Author: Med Ismail Bennani <ismail at bennani.ma>
  Date:   2026-06-10 (Wed, 10 Jun 2026)

  Changed paths:
    M lldb/packages/Python/lldbsuite/test/lldbtest.py

  Log Message:
  -----------
  [lldb/test] Tolerate ENOENT when cleaning per-test build directory (#203072)

makeBuildDir() removes any leftover bdir from a prior run before the new
test starts. shutil.rmtree() walks the tree via scandir+unlink, so if an
entry vanishes between those two calls it raises FileNotFoundError and
the test aborts in setUp.

We see this on bots when a previous test's implicit clang module build
left a *.pcm.lock file behind. clang's LockFileManager ties the lock's
lifetime to the holding process, so the file can disappear under us as
soon as that process exits.

Pass an onerror handler that swallows ENOENT (the entry is already gone,
which is what we wanted) and re-raises anything else.

Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>



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