<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - ModuleCacheTest gtest fails on macOS"
   href="https://llvm.org/bugs/show_bug.cgi?id=29045">29045</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ModuleCacheTest gtest fails on macOS
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>todd.fiala@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>