Layout fixes (again IE .. :-( )
[senf.git] / satscons / BoostUnitTests.py
index 3579a8e..7d250ad 100644 (file)
@@ -17,13 +17,14 @@ def BoostUnitTests(env, target, source, test_source=None, LIBS = [], DEPENDS = [
     if source:
         sources = sources + env.Object(source)
     sources = sources + test_source
-    binName = os.path.join(path,'.' + os.path.splitext(name)[0]+'.bin')
+    binName = os.path.join(path,'.' + name +'.bin')
     testRunner = testEnv.Program(binName, sources)
     stamp = os.path.join(path,'.' + os.path.splitext(name)[0]+'.stamp')
     if DEPENDS:
         env.Depends(testRunner, DEPENDS)
-    return env.Command([ target, stamp ], testRunner,
-                       [ '( $SOURCE $BOOSTTESTARGS 2>&1 && touch ${TARGETS[1]} ) | tee ${TARGETS[0]}; exit $$PIPESTATUS[0]' ])
+    return env.Command([ stamp ], testRunner,
+                       [ '$SOURCE $BOOSTTESTARGS',
+                         'touch $TARGET' ])
 
 def dispatcher(*arg,**kw):
     return BoostUnitTests(*arg,**kw)