diff options
author | Robert Managan <ramanagan@att.net> | 2012-12-15 05:58:31 (GMT) |
---|---|---|
committer | Robert Managan <ramanagan@att.net> | 2012-12-15 05:58:31 (GMT) |
commit | 3cf978d7964fb474f8a6219f48008f07913aabec (patch) | |
tree | 3634e98cfa6204d41b5b3a9e3e67c51b78cf2531 /test/LINK | |
parent | 118d042d9368075cefd3d74bd951a873816bde12 (diff) | |
download | SCons-3cf978d7964fb474f8a6219f48008f07913aabec.zip SCons-3cf978d7964fb474f8a6219f48008f07913aabec.tar.gz SCons-3cf978d7964fb474f8a6219f48008f07913aabec.tar.bz2 |
import SCons.Platform and use its platform_default instead of copying the source
Diffstat (limited to 'test/LINK')
-rw-r--r-- | test/LINK/VersionedLib.py | 34 |
1 files changed, 3 insertions, 31 deletions
diff --git a/test/LINK/VersionedLib.py b/test/LINK/VersionedLib.py index 5b6ba77..da0a8c4 100644 --- a/test/LINK/VersionedLib.py +++ b/test/LINK/VersionedLib.py @@ -28,36 +28,7 @@ import os import sys
import TestSCons
-# copied from SCons/Platform/__init__.py
-def platform_default():
- """Return the platform string for our execution environment.
-
- The returned value should map to one of the SCons/Platform/*.py
- files. Since we're architecture independent, though, we don't
- care about the machine architecture.
- """
- osname = os.name
- if osname == 'java':
- osname = os._osType
- if osname == 'posix':
- if sys.platform == 'cygwin':
- return 'cygwin'
- elif sys.platform.find('irix') != -1:
- return 'irix'
- elif sys.platform.find('sunos') != -1:
- return 'sunos'
- elif sys.platform.find('hp-ux') != -1:
- return 'hpux'
- elif sys.platform.find('aix') != -1:
- return 'aix'
- elif sys.platform.find('darwin') != -1:
- return 'darwin'
- else:
- return 'posix'
- elif os.name == 'os2':
- return 'os2'
- else:
- return sys.platform
+import SCons.Platform
_exe = TestSCons._exe
@@ -93,7 +64,8 @@ return 0 ; }
""")
-platform = platform_default()
+platform = SCons.Platform.platform_default()
+
test.run()
|