From 05b098d250bc23c27b4a2f8289e3f3e2c8e26b8f Mon Sep 17 00:00:00 2001 From: Tamas Berghammer Date: Mon, 9 Mar 2015 13:11:42 +0000 Subject: [PATCH] Fix AttachDeniedTestCase on android Failure caused by a missing mkfifo command in the android OS. This fix replace mkfifo with "mknode p" command on android. llvm-svn: 231651 --- .../process_attach/attach_denied/TestAttachDenied.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lldb/test/functionalities/process_attach/attach_denied/TestAttachDenied.py b/lldb/test/functionalities/process_attach/attach_denied/TestAttachDenied.py index c7f010a..e963ed1 100644 --- a/lldb/test/functionalities/process_attach/attach_denied/TestAttachDenied.py +++ b/lldb/test/functionalities/process_attach/attach_denied/TestAttachDenied.py @@ -31,7 +31,12 @@ class AttachDeniedTestCase(TestBase): pid_pipe_path = os.path.join(self.get_process_working_directory(), "pid_pipe_%d" % (int(time.time()))) - err, _ = self.run_platform_command("mkfifo %s" % (pid_pipe_path)) + triple = self.dbg.GetSelectedPlatform().GetTriple() + if re.match(".*-.*-.*-android", triple): + err, _ = self.run_platform_command("mknod %s p" % (pid_pipe_path)) + else: + err, _ = self.run_platform_command("mkfifo %s" % (pid_pipe_path)) + self.assertTrue(err.Success(), "Failed to create FIFO %s: %s" % (pid_pipe_path, err.GetCString())) self.addTearDownHook(lambda: self.run_platform_command("rm %s" % (pid_pipe_path))) -- 2.7.4