diff options
Diffstat (limited to 'build2/test/target.cxx')
-rw-r--r-- | build2/test/target.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build2/test/target.cxx b/build2/test/target.cxx index a5801e8..3bf00c1 100644 --- a/build2/test/target.cxx +++ b/build2/test/target.cxx @@ -11,7 +11,7 @@ namespace build2 { namespace test { - static target* + static pair<target*, optional<string>> testscript_factory (const target_type&, dir_path d, dir_path o, @@ -21,7 +21,8 @@ namespace build2 if (!e) e = (n == "testscript" ? string () : "test"); - return new testscript (move (d), move (o), move (n), move (e)); + return make_pair ( + new testscript (move (d), move (o), move (n)), move (e)); } static optional<string> |