summaryrefslogtreecommitdiffstats
path: root/test/CXX
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-10-14 16:23:52 (GMT)
committerSteven Knight <knight@baldmt.com>2005-10-14 16:23:52 (GMT)
commitaf962864b108d8fdd654edaf3c0300404ca07e3e (patch)
tree3a6877e15644a6da25570af9ee7aade000983ad4 /test/CXX
parent82c2f16e53cba1a639d568fe8d6780dfe30c56ab (diff)
downloadSCons-af962864b108d8fdd654edaf3c0300404ca07e3e.zip
SCons-af962864b108d8fdd654edaf3c0300404ca07e3e.tar.gz
SCons-af962864b108d8fdd654edaf3c0300404ca07e3e.tar.bz2
Get rid of indentation tabs in the test scripts and have runtest.py invoke them with the python -tt option to keep them out.
Diffstat (limited to 'test/CXX')
-rw-r--r--test/CXX/CXX.py20
-rw-r--r--test/CXX/CXXFILESUFFIX.py8
-rw-r--r--test/CXX/SHCXX.py12
-rw-r--r--test/CXX/SHCXXFLAGS.py4
4 files changed, 22 insertions, 22 deletions
diff --git a/test/CXX/CXX.py b/test/CXX/CXX.py
index 6f9f0ce..70a9b82 100644
--- a/test/CXX/CXX.py
+++ b/test/CXX/CXX.py
@@ -52,7 +52,7 @@ infile = open(args[0], 'rb')
outfile = open(out, 'wb')
for l in infile.readlines():
if l[:8] != '/*link*/':
- outfile.write(l)
+ outfile.write(l)
sys.exit(0)
""")
@@ -72,7 +72,7 @@ infile = open(inf, 'rb')
outfile = open(out, 'wb')
for l in infile.readlines():
if l[:7] != '/*c++*/':
- outfile.write(l)
+ outfile.write(l)
sys.exit(0)
""")
@@ -88,7 +88,7 @@ infile = open(args[0], 'rb')
outfile = open(out, 'wb')
for l in infile.readlines():
if l[:8] != '/*link*/':
- outfile.write(l)
+ outfile.write(l)
sys.exit(0)
""")
@@ -102,7 +102,7 @@ infile = open(args[0], 'rb')
outfile = open(out, 'wb')
for l in infile.readlines():
if l[:7] != '/*c++*/':
- outfile.write(l)
+ outfile.write(l)
sys.exit(0)
""")
@@ -199,9 +199,9 @@ test.write('foo.cxx', r"""
int
main(int argc, char *argv[])
{
- argv[argc++] = "--";
- printf("foo.cxx\n");
- exit (0);
+ argv[argc++] = "--";
+ printf("foo.cxx\n");
+ exit (0);
}
""")
@@ -211,9 +211,9 @@ test.write('bar.cxx', r"""
int
main(int argc, char *argv[])
{
- argv[argc++] = "--";
- printf("foo.cxx\n");
- exit (0);
+ argv[argc++] = "--";
+ printf("foo.cxx\n");
+ exit (0);
}
""")
diff --git a/test/CXX/CXXFILESUFFIX.py b/test/CXX/CXXFILESUFFIX.py
index d729076..8f4c4fa 100644
--- a/test/CXX/CXXFILESUFFIX.py
+++ b/test/CXX/CXXFILESUFFIX.py
@@ -55,10 +55,10 @@ input = r"""
int
main(int argc, char *argv[])
{
- argv[argc++] = "--";
- printf("LEX\n");
- printf("%s\n");
- exit (0);
+ argv[argc++] = "--";
+ printf("LEX\n");
+ printf("%s\n");
+ exit (0);
}
"""
diff --git a/test/CXX/SHCXX.py b/test/CXX/SHCXX.py
index a3c98c7..5c050d1 100644
--- a/test/CXX/SHCXX.py
+++ b/test/CXX/SHCXX.py
@@ -55,9 +55,9 @@ test.write('foo.cpp', r"""
int
main(int argc, char *argv[])
{
- argv[argc++] = "--";
- printf("foo.c\n");
- exit (0);
+ argv[argc++] = "--";
+ printf("foo.c\n");
+ exit (0);
}
""")
@@ -67,9 +67,9 @@ test.write('bar.cpp', r"""
int
main(int argc, char *argv[])
{
- argv[argc++] = "--";
- printf("foo.c\n");
- exit (0);
+ argv[argc++] = "--";
+ printf("foo.c\n");
+ exit (0);
}
""")
diff --git a/test/CXX/SHCXXFLAGS.py b/test/CXX/SHCXXFLAGS.py
index 38feca1..049be6c 100644
--- a/test/CXX/SHCXXFLAGS.py
+++ b/test/CXX/SHCXXFLAGS.py
@@ -85,10 +85,10 @@ extern "C" void
doIt()
{
#ifdef FOO
- printf("prog.cpp: FOO\n");
+ printf("prog.cpp: FOO\n");
#endif
#ifdef BAR
- printf("prog.cpp: BAR\n");
+ printf("prog.cpp: BAR\n");
#endif
}
""")