[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

Ed Maste via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat Sep 2 14:33:39 PDT 2017


emaste added inline comments.


================
Comment at: packages/Python/lldbsuite/test/functionalities/process_attach/TestProcessAttach.py:44
+        """Test attach by process id"""
+        os.mkdir(os.path.join(os.getcwd(),'newdir'))
+        self.buildProgram('main.cpp',os.path.join(os.getcwd(),'newdir','proc_attach'))
----------------
Perhaps
```
        try:                                                                   
            os.mkdir(os.path.join(os.getcwd(),'newdir'))                       
        except OSError, e:                                                     
            if e.errno != os.errno.EEXIST:                                     
                raise                                                          
```


https://reviews.llvm.org/D32522





More information about the lldb-commits mailing list