aboutsummaryrefslogtreecommitdiff
path: root/binary_search_tool/test/is_good.py
blob: 60b2b50d73d68dae15c7e8aec0b5351eb5958a5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/python
"""Check to see if the working set produces a good executable."""

import sys

import common


def Main():
  working_set = common.ReadWorkingSet()
  for w in working_set:
    if w == 1:
      return 1  ## False, linking failure
  return 0


if __name__ == '__main__':
  retval = Main()
  sys.exit(retval)