llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[llvm-lit] Unhashable TypeError 'GlobItem' with lit’s internal shell

Open Harini0924 opened this issue 2 years ago • 0 comments

The RUN: lines in the long-object-path.cpp file are encountering unhashable type errors for GlobItem instances. This issue occurs due to improper handling of GlobItem instances within the test execution logic, specifically in the _executeShCmd function in lit's TestRunner.py. The error is encountered in the TestRunner.py file, specifically within the _executeShCmd function at line 770: inproc_builtin = inproc_builtins.get(args[0], None)

Error Displayed:

inproc_builtin = inproc_builtins.get(args[0], None)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: unhashable type: 'GlobItem'```

Harini0924 avatar Aug 07 '24 21:08 Harini0924