[llvm-bugs] [Bug 25092] New: Test suit is flaky if 2 tests have the same file name

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 7 06:17:53 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=25092

            Bug ID: 25092
           Summary: Test suit is flaky if 2 tests have the same file name
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: tberghammer at google.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

If we have 2 test case with the same file name then the test suit will become
flaky for those tests.

In some ordering of the events (most likely when the 2 test with the same name
run at the same time) one of the test will fail with the following error:

Traceback (most recent call last):
  File
"/lldb-buildbot/lldbSlave/buildWorkingDir/llvm/tools/lldb/test/dotest.py", line
2019, in <module>
    resultclass=LLDBTestResult).run(suite)
  File
"/lldb-buildbot/lldbSlave/buildWorkingDir/llvm/tools/lldb/test/unittest2/runner.py",
line 162, in run
    test(result)
  File
"/lldb-buildbot/lldbSlave/buildWorkingDir/llvm/tools/lldb/test/unittest2/suite.py",
line 64, in __call__
    return self.run(*args, **kwds)
  File
"/lldb-buildbot/lldbSlave/buildWorkingDir/llvm/tools/lldb/test/unittest2/suite.py",
line 84, in run
    self._wrapped_run(result)
  File
"/lldb-buildbot/lldbSlave/buildWorkingDir/llvm/tools/lldb/test/unittest2/suite.py",
line 114, in _wrapped_run
    test._wrapped_run(result, debug)
  File
"/lldb-buildbot/lldbSlave/buildWorkingDir/llvm/tools/lldb/test/unittest2/suite.py",
line 116, in _wrapped_run
    test(result)
  File
"/lldb-buildbot/lldbSlave/buildWorkingDir/llvm/tools/lldb/test/unittest2/case.py",
line 417, in __call__
    return self.run(*args, **kwds)
  File
"/lldb-buildbot/lldbSlave/buildWorkingDir/llvm/tools/lldb/test/unittest2/case.py",
line 389, in run
    self.dumpSessionInfo()
  File
"/lldb-buildbot/lldbSlave/buildWorkingDir/llvm/tools/lldb/test/lldbtest.py",
line 1890, in dumpSessionInfo
    os.rename(src, dst)
OSError: [Errno 2] No such file or directory

We should handle the case when 2 test have the same file name or explicitly
disallow it with some check at test case loading time.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151007/c851dd6d/attachment.html>


More information about the llvm-bugs mailing list