[LLVMbugs] [Bug 10612] New: Cannot run the check project with long path names

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 8 16:36:24 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10612

           Summary: Cannot run the check project with long path names
           Product: Test Suite
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: lit
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: aaron at aaronballman.com
                CC: llvmbugs at cs.uiuc.edu, daniel at zuster.org


Attempting to run the check project when llvm is on a path with spaces causes
every test to file with an error similar to:

8>  Exception during script execution:
8>  Traceback (most recent call last):
8>    File "C:\Users\Aaron Ballman\Desktop\llvm\llvm\utils\lit\lit\main.py",
line 122, in runTest
8>      self.litConfig)
8>    File "C:\Users\Aaron
Ballman\Desktop\llvm\llvm\utils\lit\lit\TestFormats.py", line 129, in execute
8>      return TestRunner.executeTclTest(test, litConfig)
8>    File "C:\Users\Aaron
Ballman\Desktop\llvm\llvm\utils\lit\lit\TestRunner.py", line 528, in
executeTclTest
8>      res = executeTclScriptInternal(test, litConfig, tmpBase, script,
execdir)
8>    File "C:\Users\Aaron
Ballman\Desktop\llvm\llvm\utils\lit\lit\TestRunner.py", line 324, in
executeTclScriptInternal
8>      exitCode = executeShCmd(cmd, test.config, cwd, results)
8>    File "C:\Users\Aaron
Ballman\Desktop\llvm\llvm\utils\lit\lit\TestRunner.py", line 120, in
executeShCmd
8>      r[2] = open(r[0], r[1])
8>  IOError: [Errno 2] No such file or directory: 'C:/Users/Aaron'

Paths should either be escaped, or quoted properly.  Note, the full path to
llvm on my machine is: "C:\Users\Aaron Ballman\Desktop\llvm"

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list