summaryrefslogtreecommitdiff
path: root/tests/test_unixccompiler.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-09-09 08:48:07 +0000
committerTarek Ziadé <ziade.tarek@gmail.com>2009-09-09 08:48:07 +0000
commit031ebb0fc2345b84cefb440c6cc83264cc9bd79e (patch)
tree6caeedfaece83338c9e77b1b99299fc58d7d5ed3 /tests/test_unixccompiler.py
parent8f6778cb615909aff25a6b77a78d07e195be85af (diff)
downloadpython-setuptools-git-031ebb0fc2345b84cefb440c6cc83264cc9bd79e.tar.gz
Merged revisions 74728 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r74728 | tarek.ziade | 2009-09-09 10:14:20 +0200 (Wed, 09 Sep 2009) | 1 line Issue #6163: Fixed HP-UX runtime library dir options in distutils.unixcompiler ........
Diffstat (limited to 'tests/test_unixccompiler.py')
-rw-r--r--tests/test_unixccompiler.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/test_unixccompiler.py b/tests/test_unixccompiler.py
index 96f5454e..1b7dd4cd 100644
--- a/tests/test_unixccompiler.py
+++ b/tests/test_unixccompiler.py
@@ -36,7 +36,23 @@ class UnixCCompilerTestCase(unittest.TestCase):
# hp-ux
sys.platform = 'hp-ux'
- self.assertEqual(self.cc.rpath_foo(), '+s -L/foo')
+ old_gcv = sysconfig.get_config_var
+ def gcv(v):
+ return 'xxx'
+ sysconfig.get_config_var = gcv
+ self.assertEqual(self.cc.rpath_foo(), ['+s', '-L/foo'])
+
+ def gcv(v):
+ return 'gcc'
+ sysconfig.get_config_var = gcv
+ self.assertEqual(self.cc.rpath_foo(), ['-Wl,+s', '-L/foo'])
+
+ def gcv(v):
+ return 'g++'
+ sysconfig.get_config_var = gcv
+ self.assertEqual(self.cc.rpath_foo(), ['-Wl,+s', '-L/foo'])
+
+ sysconfig.get_config_var = old_gcv
# irix646
sys.platform = 'irix646'