[Lldb-commits] [lldb] r130251 - in /lldb/trunk/test: dotest.py lldbutil.py
Johnny Chen
johnny.chen at apple.com
Tue Apr 26 15:53:38 PDT 2011
Author: johnny
Date: Tue Apr 26 17:53:38 2011
New Revision: 130251
URL: http://llvm.org/viewvc/llvm-project?rev=130251&view=rev
Log:
Docstring changees.
Modified:
lldb/trunk/test/dotest.py
lldb/trunk/test/lldbutil.py
Modified: lldb/trunk/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest.py?rev=130251&r1=130250&r2=130251&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Tue Apr 26 17:53:38 2011
@@ -24,10 +24,11 @@
import unittest2
def is_exe(fpath):
+ """Return true if fpath is an executable."""
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
-# Find the full path to a program, or return None.
def which(program):
+ """Find the full path to a program; return None otherwise."""
fpath, fname = os.path.split(program)
if fpath:
if is_exe(program):
Modified: lldb/trunk/test/lldbutil.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbutil.py?rev=130251&r1=130250&r2=130251&view=diff
==============================================================================
--- lldb/trunk/test/lldbutil.py (original)
+++ lldb/trunk/test/lldbutil.py Tue Apr 26 17:53:38 2011
@@ -6,11 +6,16 @@
import os, sys
import StringIO
+# ====================================================
+# Utilities for locating/checking executable programs.
+# ====================================================
+
def is_exe(fpath):
+ """Return true if fpath is an executable."""
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
def which(program):
- """Find the full path to a program, or return None."""
+ """Find the full path to a program; return None otherwise."""
fpath, fname = os.path.split(program)
if fpath:
if is_exe(program):
More information about the lldb-commits
mailing list