Skip to content

Commit ae8b7ac

Browse files
labathJDevlieghere
authored andcommitted
[lldb] Add a sleep to TestObjectFileJSON
The test fails when the two generated files have the same timestamp (lldb uses second granularity). (cherry picked from commit 09ba7b6)
1 parent b06c6f4 commit ae8b7ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lldb/test/API/macosx/symbols/TestObjectFileJSON.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import uuid
88
import os
99
import shutil
10+
import time
1011

1112

1213
class TestObjectFileJSON(TestBase):
@@ -80,6 +81,9 @@ def test_module(self):
8081
}
8182
],
8283
}
84+
85+
# Sleep to ensure the new file has a different timestamp
86+
time.sleep(2)
8387
self.emitJSON(data, json_object_file)
8488

8589
module = target.AddModule(self.toModuleSpec(json_object_file))

0 commit comments

Comments
 (0)