[lldb-dev] [Bug 29045] New: ModuleCacheTest gtest fails on macOS

via lldb-dev lldb-dev at lists.llvm.org
Thu Aug 18 22:14:30 PDT 2016


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

            Bug ID: 29045
           Summary: ModuleCacheTest gtest fails on macOS
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: todd.fiala at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

In refreshing the macOS Xcode lldb-gtest target to include all the newer gtests
that are not yet there, I am finding that the ModuleCacheTest test currently
fails on macOS:

[----------] 3 tests from ModuleCacheTest
[ RUN      ] ModuleCacheTest.GetAndPut
/Volumes/Data/src/lldb-llvm.org/lldb/unittests/Utility/ModuleCacheTest.cpp:128:
Failure
Value of: ec
  Actual: true
Expected: false
/Volumes/Data/src/lldb-llvm.org/lldb/unittests/Utility/ModuleCacheTest.cpp:135:
Failure
Value of: error.Success()
  Actual: false
Expected: true
Error was: Failed to put module into cache: Failed to rename file
/var/folders/0w/klq9nv2j7c35lygnl43hpcq40000gn/T/./lldb/8493/GetAndPut/.cache/F4E7E991-9B61-6AD4-0073-561AC3D9FA10-C043A476/.temp
to
/var/folders/0w/klq9nv2j7c35lygnl43hpcq40000gn/T/./lldb/8493/GetAndPut/.cache/F4E7E991-9B61-6AD4-0073-561AC3D9FA10-C043A476/TestModule.so:
No such file or directory
/Volumes/Data/src/lldb-llvm.org/lldb/unittests/Utility/ModuleCacheTest.cpp:136:
Failure
Value of: did_create
  Actual: false
Expected: true
/Volumes/Data/src/lldb-llvm.org/lldb/unittests/Utility/ModuleCacheTest.cpp:137:
Failure
Value of: bool(module_sp)
  Actual: false
Expected: true
/Volumes/Data/src/lldb-llvm.org/lldb/unittests/Utility/ModuleCacheTest.cpp:102:
Failure
Value of: uuid_view.Exists()
  Actual: false
Expected: true
uuid_view is:
/var/folders/0w/klq9nv2j7c35lygnl43hpcq40000gn/T/./lldb/8493/GetAndPut/.cache/F4E7E991-9B61-6AD4-0073-561AC3D9FA10-C043A476/TestModule.so
/Volumes/Data/src/lldb-llvm.org/lldb/unittests/Utility/ModuleCacheTest.cpp:103:
Failure
Value of: uuid_view.GetByteSize()
  Actual: 0
Expected: module_size
Which is: 5602
/Volumes/Data/src/lldb-llvm.org/lldb/unittests/Utility/ModuleCacheTest.cpp:106:
Failure
Value of: sysroot_view.Exists()
  Actual: false
Expected: true
sysroot_view is:
/var/folders/0w/klq9nv2j7c35lygnl43hpcq40000gn/T/./lldb/8493/GetAndPut/dummy_hostname/bin/TestModule.so
/Volumes/Data/src/lldb-llvm.org/lldb/unittests/Utility/ModuleCacheTest.cpp:107:
Failure
Value of: sysroot_view.GetByteSize()
  Actual: 0
Expected: module_size
Which is: 5602
[  FAILED  ] ModuleCacheTest.GetAndPut (3 ms)
[ RUN      ] ModuleCacheTest.GetAndPutUuidExists
/Volumes/Data/src/lldb-llvm.org/lldb/unittests/Utility/ModuleCacheTest.cpp:164:
Failure
Value of: ec
  Actual: true
Expected: false
[  FAILED  ] ModuleCacheTest.GetAndPutUuidExists (0 ms)
[ RUN      ] ModuleCacheTest.GetAndPutStrangeHostname
/Volumes/Data/src/lldb-llvm.org/lldb/unittests/Utility/ModuleCacheTest.cpp:128:
Failure
Value of: ec
  Actual: true
Expected: false
/Volumes/Data/src/lldb-llvm.org/lldb/unittests/Utility/ModuleCacheTest.cpp:135:
Failure
Value of: error.Success()
  Actual: false
Expected: true
Error was: Failed to put module into cache: Failed to rename file
/var/folders/0w/klq9nv2j7c35lygnl43hpcq40000gn/T/./lldb/8493/GetAndPutStrangeHostname/.cache/F4E7E991-9B61-6AD4-0073-561AC3D9FA10-C043A476/.temp
to
/var/folders/0w/klq9nv2j7c35lygnl43hpcq40000gn/T/./lldb/8493/GetAndPutStrangeHostname/.cache/F4E7E991-9B61-6AD4-0073-561AC3D9FA10-C043A476/TestModule.so:
No such file or directory
/Volumes/Data/src/lldb-llvm.org/lldb/unittests/Utility/ModuleCacheTest.cpp:136:
Failure
Value of: did_create
  Actual: false
Expected: true
/Volumes/Data/src/lldb-llvm.org/lldb/unittests/Utility/ModuleCacheTest.cpp:137:
Failure
Value of: bool(module_sp)
  Actual: false
Expected: true
/Volumes/Data/src/lldb-llvm.org/lldb/unittests/Utility/ModuleCacheTest.cpp:102:
Failure
Value of: uuid_view.Exists()
  Actual: false
Expected: true
uuid_view is:
/var/folders/0w/klq9nv2j7c35lygnl43hpcq40000gn/T/./lldb/8493/GetAndPutStrangeHostname/.cache/F4E7E991-9B61-6AD4-0073-561AC3D9FA10-C043A476/TestModule.so
/Volumes/Data/src/lldb-llvm.org/lldb/unittests/Utility/ModuleCacheTest.cpp:103:
Failure
Value of: uuid_view.GetByteSize()
  Actual: 0
Expected: module_size
Which is: 5602
/Volumes/Data/src/lldb-llvm.org/lldb/unittests/Utility/ModuleCacheTest.cpp:106:
Failure
Value of: sysroot_view.Exists()
  Actual: false
Expected: true
sysroot_view is:
/var/folders/0w/klq9nv2j7c35lygnl43hpcq40000gn/T/./lldb/8493/GetAndPutStrangeHostname/tab_colon_asterisk_/bin/TestModule.so
/Volumes/Data/src/lldb-llvm.org/lldb/unittests/Utility/ModuleCacheTest.cpp:107:
Failure
Value of: sysroot_view.GetByteSize()
  Actual: 0
Expected: module_size
Which is: 5602
[  FAILED  ] ModuleCacheTest.GetAndPutStrangeHostname (1 ms)
[----------] 3 tests from ModuleCacheTest (4 ms total)

I am not including this test in the build for now, since our macOS buildbot
builds the lldb-gtest target and, as far as I can see, gtest doesn't give me a
way to mark that XFAIL on macOS.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160819/9baeb902/attachment.html>


More information about the lldb-dev mailing list