Skip to content

Commit ce961c5

Browse files
authored
[lldb] Fixed the TestFdLeak test (llvm#92273)
Use `os.devnull` instead of `/dev/null`.
1 parent 90fbc5b commit ce961c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/test/API/functionalities/avoids-fd-leak/TestFdLeak.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_fd_leak_basic(self):
2626
@skipIfTargetAndroid() # Android have some other file descriptors open by the shell
2727
@skipIfDarwinEmbedded # <rdar://problem/33888742> # debugserver on ios has an extra fd open on launch
2828
def test_fd_leak_log(self):
29-
self.do_test(["log enable -f '/dev/null' lldb commands"])
29+
self.do_test(["log enable -f '{}' lldb commands".format(os.devnull)])
3030

3131
def do_test(self, commands):
3232
self.build()

0 commit comments

Comments
 (0)