Skip to content

Commit

Permalink
Bugfix for issue 67: --part generating main in cxxtestgen.py
Browse files Browse the repository at this point in the history
This fixes the error. I checked that SCons tests work ok, and they do. Could
someone please run the other tests, or, better, explain how that's done to me :)

Regards,

Gašper


git-svn-id: https://cxxtest.svn.sourceforge.net/svnroot/cxxtest/trunk@115 2f8b185b-e3eb-40a7-945f-4de83c84e57e
  • Loading branch information
atomgalaxy committed Jul 20, 2009
1 parent 1bf14fe commit f6710b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cxxtestgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,13 @@ def writeSimpleOutput():
'''Create output not based on template'''
output = startOutputFile()
writePreamble( output )
writeMain( output )
if options.root or not options.part:
writeMain( output )
sys.stderr.write("printing main")

if len(suites) > 0:
print >>output, "bool "+suites[0]['name']+"_init = false;"

writeWorld( output )
output.close()

Expand Down

0 comments on commit f6710b8

Please sign in to comment.