Boost logo

Boost-Commit :

From: jurko.gospodnetic_at_[hidden]
Date: 2008-01-06 15:37:55


Author: jurko
Date: 2008-01-06 15:37:55 EST (Sun, 06 Jan 2008)
New Revision: 42547
URL: http://svn.boost.org/trac/boost/changeset/42547

Log:
Simple code cleanup. Typo corrections.
Text files modified:
   trunk/tools/build/v2/test/abs_workdir.py | 29 ++++++++++++-----------------
   trunk/tools/build/v2/tools/pch.jam | 10 +++++-----
   2 files changed, 17 insertions(+), 22 deletions(-)

Modified: trunk/tools/build/v2/test/abs_workdir.py
==============================================================================
--- trunk/tools/build/v2/test/abs_workdir.py (original)
+++ trunk/tools/build/v2/test/abs_workdir.py 2008-01-06 15:37:55 EST (Sun, 06 Jan 2008)
@@ -2,30 +2,25 @@
 # Testing whether we may run a test in a absolute directories
 # There are no tests for temporary directories as this is implictly tested in a lot of other cases
 
-from BoostBuild import Tester
-import os, string
+import BoostBuild
+import os
+import string
 
-t = Tester(
- executable="jam"
- , workdir = os.getcwd()
- , pass_toolset=0
- )
+t = BoostBuild.Tester(arguments="pwd", executable="jam", workdir=os.getcwd(),
+ pass_toolset=0)
 
-jamfile="""
+t.write("Jamroot.jam", """
 actions print_pwd { pwd ; }
 print_pwd pwd ;
 Always pwd ;
-"""
+""")
 
-t.write("Jamfile", jamfile)
-t.write("project-root.jam", " ")
-
-t.run_build_system(status=0, extra_args = "pwd")
+t.run_build_system(status=0)
 
 if 'TMP' in os.environ:
- tmp_dir =os.environ.get('TMP')
+ tmp_dir = os.environ.get('TMP')
 else:
- tmp_dir ="/tmp"
+ tmp_dir = "/tmp"
 
 if string.rfind(t.stdout(), tmp_dir) != -1:
     t.fail_test(1)
@@ -33,7 +28,7 @@
 if string.rfind(t.stdout(), 'build/v2/test') == -1:
     t.fail_test(1)
 
-t.run_build_system(status=1, extra_args = "pwd", subdir ="/must/fail/with/absolute/path",
- stderr=None)
+t.run_build_system(status=1, subdir="/must/fail/with/absolute/path",
+ stderr=None)
 t.cleanup
 

Modified: trunk/tools/build/v2/tools/pch.jam
==============================================================================
--- trunk/tools/build/v2/tools/pch.jam (original)
+++ trunk/tools/build/v2/tools/pch.jam 2008-01-06 15:37:55 EST (Sun, 06 Jan 2008)
@@ -34,7 +34,7 @@
 type.register C_PCH : : PCH ;
 type.register CPP_PCH : : PCH ;
 
-# Fontrol precompiled header (PCH) generation.
+# Control precompiled header (PCH) generation.
 feature.feature pch :
       on
       off
@@ -89,7 +89,7 @@
 
 # NOTE: requirements are empty, default pch generator can be applied when
 # pch=off.
-generators.register [
- new dummy-generator pch.default-c-pch-generator : : C_PCH ] ;
-generators.register [
- new dummy-generator pch.default-cpp-pch-generator : : CPP_PCH ] ;
+generators.register
+ [ new dummy-generator pch.default-c-pch-generator : : C_PCH ] ;
+generators.register
+ [ new dummy-generator pch.default-cpp-pch-generator : : CPP_PCH ] ;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk