aboutsummaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2010-11-05 20:48:19 -0700
committerAlon Zakai <azakai@mozilla.com>2010-11-05 20:48:19 -0700
commit906a8745c2a70d3bf797bce28c5c0ba055f8b98a (patch)
tree98df65205fea7e448f12df4afb5674dea8af5936 /third_party
parent093bfe5c5ac4c9713250dc7da75e5c20022bbe01 (diff)
framework for integration tests
Diffstat (limited to 'third_party')
-rw-r--r--third_party/demangler.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/third_party/demangler.py b/third_party/demangler.py
index bdb58cbd..b9b4b1ef 100644
--- a/third_party/demangler.py
+++ b/third_party/demangler.py
@@ -29,9 +29,10 @@ splitter = sys.argv[2]
SEEN = {}
for line in data:
- if line[0] == ' ': continue
- if line[0] != '_': continue
- func = line.split(splitter)[0]
+ if len(line) < 4: continue
+ if line[:2] != ' ': continue
+ if line[2] != '_': continue
+ func = line.lstrip().split(splitter)[0]
if func in SEEN: continue
SEEN[func] = True
args = JS_ENGINE + [os.path.join(os.path.dirname(__file__), 'gcc_demangler.js')] + JS_ENGINE_PARAMS + [func[1:]]