OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright 2008, Google Inc. | 2 # Copyright 2008, Google Inc. |
3 # All rights reserved. | 3 # All rights reserved. |
4 # | 4 # |
5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
7 # met: | 7 # met: |
8 # | 8 # |
9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
11 # * Redistributions in binary form must reproduce the above | 11 # * Redistributions in binary form must reproduce the above |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 elif platform.system() in ("Windows", "Microsoft", "CYGWIN_NT-5.1"): | 47 elif platform.system() in ("Windows", "Microsoft", "CYGWIN_NT-5.1"): |
48 SEL_LDR = "../../scons-out/dbg-win/obj/service_runtime/sel_ldr" | 48 SEL_LDR = "../../scons-out/dbg-win/obj/service_runtime/sel_ldr" |
49 elif platform.system() in ("Darwin", "Mac"): | 49 elif platform.system() in ("Darwin", "Mac"): |
50 SEL_LDR = "../../scons-out/dbg-mac/obj/service_runtime/sel_ldr" | 50 SEL_LDR = "../../scons-out/dbg-mac/obj/service_runtime/sel_ldr" |
51 else: | 51 else: |
52 print "Unsupported platform for create threads test!" | 52 print "Unsupported platform for create threads test!" |
53 sys.exit(-1) | 53 sys.exit(-1) |
54 | 54 |
55 if __name__ == '__main__': | 55 if __name__ == '__main__': |
56 sys.exit( subprocess.call([SEL_LDR, "-d", "-f", CREATETHREADS_NEXE]) ) | 56 sys.exit( subprocess.call([SEL_LDR, "-d", "-f", CREATETHREADS_NEXE]) ) |
OLD | NEW |