summaryrefslogtreecommitdiffstats
path: root/test/RANLIB/RANLIB.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/RANLIB/RANLIB.py')
-rw-r--r--test/RANLIB/RANLIB.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/RANLIB/RANLIB.py b/test/RANLIB/RANLIB.py
index 5002b20..75e860a 100644
--- a/test/RANLIB/RANLIB.py
+++ b/test/RANLIB/RANLIB.py
@@ -30,7 +30,7 @@ import string
import sys
import TestSCons
-python = TestSCons.python
+_python_ = TestSCons._python_
_exe = TestSCons._exe
@@ -53,7 +53,7 @@ test.write('SConstruct', """
foo = Environment(LIBS = ['foo'], LIBPATH = ['.'])
ranlib = foo.Dictionary('RANLIB')
bar = Environment(LIBS = ['bar'], LIBPATH = ['.'],
- RANLIB = r'%s wrapper.py ' + ranlib)
+ RANLIB = r'%(_python_)s wrapper.py ' + ranlib)
foo.Library(target = 'foo', source = 'foo.c')
bar.Library(target = 'bar', source = 'bar.c')
@@ -61,9 +61,10 @@ main = foo.Object('main', 'main.c')
foo.Program(target = 'f', source = main)
bar.Program(target = 'b', source = main)
-""" % python)
+""" % locals())
test.write('foo.c', r"""
+#include <stdio.h>
void
library_function(void)
{
@@ -72,6 +73,8 @@ library_function(void)
""")
test.write('bar.c', r"""
+#include <stdio.h>
+
void
library_function(void)
{
@@ -80,6 +83,7 @@ library_function(void)
""")
test.write('main.c', r"""
+#include <stdlib.h>
int
main(int argc, char *argv[])
{