tests: Fix building unit tests.

Unit tests shouldn't build in gem5's main function because they have thier
own.
This commit is contained in:
Gabe Black
2012-04-09 23:20:30 -07:00
parent 3fd425124c
commit 15ca4f2fc7

View File

@@ -901,7 +901,7 @@ def makeEnv(label, objsfx, strip = False, **kwargs):
test_sources = Source.get(**flags)
test_objs = [ make_obj(s, static=True) for s in test_sources ]
testname = "unittest/%s.%s" % (test.target, label)
new_env.Program(testname, main_objs + test_objs + static_objs)
new_env.Program(testname, test_objs + static_objs)
progname = exename
if strip: