@@ -99,7 +99,7 @@ TEST(RegisterTestGroup, Register_Build) {
9999 CHECK_TRUE (args.Clean ());
100100
101101 // Make dummy toolchain and target
102- buildcc::env::init (fs::current_path (), fs::current_path ());
102+ buildcc::Project::Init (fs::current_path (), fs::current_path ());
103103 buildcc::Toolchain toolchain (buildcc::ToolchainId::Gcc, " " , " " , " " , " " , " " ,
104104 " " );
105105 buildcc::BaseTarget target (" dummyT" , buildcc::TargetType::Executable,
@@ -122,7 +122,7 @@ TEST(RegisterTestGroup, Register_Build) {
122122 state, [](buildcc::BaseTarget &target) { (void )target; }, target);
123123 }
124124
125- buildcc::env::deinit ();
125+ buildcc::Project::Deinit ();
126126 mock ().checkExpectations ();
127127}
128128
@@ -147,7 +147,7 @@ TEST(RegisterTestGroup, Register_NoBuildAndDep) {
147147 CHECK_TRUE (args.Clean ());
148148
149149 // Make dummy toolchain and target
150- buildcc::env::init (fs::current_path (), fs::current_path ());
150+ buildcc::Project::Init (fs::current_path (), fs::current_path ());
151151 buildcc::Toolchain toolchain (buildcc::ToolchainId::Gcc, " " , " " , " " , " " , " " ,
152152 " " );
153153 buildcc::BaseTarget target (" dummyT" , buildcc::TargetType::Executable,
@@ -206,7 +206,7 @@ TEST(RegisterTestGroup, Register_NoBuildAndDep) {
206206 reg.Dep (target, dependency);
207207 }
208208
209- buildcc::env::deinit ();
209+ buildcc::Project::Deinit ();
210210 mock ().checkExpectations ();
211211}
212212
@@ -231,7 +231,7 @@ TEST(RegisterTestGroup, Register_BuildAndDep) {
231231 CHECK_TRUE (args.Clean ());
232232
233233 // Make dummy toolchain and target
234- buildcc::env::init (fs::current_path (), fs::current_path ());
234+ buildcc::Project::Init (fs::current_path (), fs::current_path ());
235235 buildcc::Toolchain toolchain (buildcc::ToolchainId::Gcc, " " , " " , " " , " " , " " ,
236236 " " );
237237 buildcc::BaseTarget target (" dummyT" , buildcc::TargetType::Executable,
@@ -301,7 +301,7 @@ TEST(RegisterTestGroup, Register_BuildAndDep) {
301301 reg.Dep (target, dependency);
302302 }
303303
304- buildcc::env::deinit ();
304+ buildcc::Project::Deinit ();
305305 mock ().checkExpectations ();
306306}
307307
@@ -326,7 +326,7 @@ TEST(RegisterTestGroup, Register_DepDuplicate) {
326326 CHECK_TRUE (args.Clean ());
327327
328328 // Make dummy toolchain and target
329- buildcc::env::init (fs::current_path (), fs::current_path ());
329+ buildcc::Project::Init (fs::current_path (), fs::current_path ());
330330 buildcc::Toolchain toolchain (buildcc::ToolchainId::Gcc, " " , " " , " " , " " , " " ,
331331 " " );
332332 buildcc::BaseTarget target (" dummyT" , buildcc::TargetType::Executable,
@@ -377,7 +377,7 @@ TEST(RegisterTestGroup, Register_DepDuplicate) {
377377 CHECK_THROWS (std::exception, reg.Dep (target, dependency2));
378378 }
379379
380- buildcc::env::deinit ();
380+ buildcc::Project::Deinit ();
381381 mock ().checkExpectations ();
382382}
383383
@@ -402,7 +402,7 @@ TEST(RegisterTestGroup, Register_DepCyclic) {
402402 CHECK_TRUE (args.Clean ());
403403
404404 // Make dummy toolchain and target
405- buildcc::env::init (fs::current_path (), fs::current_path ());
405+ buildcc::Project::Init (fs::current_path (), fs::current_path ());
406406 buildcc::Toolchain toolchain (buildcc::ToolchainId::Gcc, " " , " " , " " , " " , " " ,
407407 " " );
408408 buildcc::BaseTarget target (" dummyT" , buildcc::TargetType::Executable,
@@ -452,7 +452,7 @@ TEST(RegisterTestGroup, Register_DepCyclic) {
452452 CHECK_THROWS (std::exception, reg.Dep (dependency2, target));
453453 }
454454
455- buildcc::env::deinit ();
455+ buildcc::Project::Deinit ();
456456 mock ().checkExpectations ();
457457}
458458
@@ -478,7 +478,7 @@ TEST(RegisterTestGroup, Register_Test) {
478478 CHECK_TRUE (args.Clean ());
479479
480480 // Make dummy toolchain and target
481- buildcc::env::init (fs::current_path (), fs::current_path ());
481+ buildcc::Project::Init (fs::current_path (), fs::current_path ());
482482 buildcc::Toolchain toolchain (buildcc::ToolchainId::Gcc, " " , " " , " " , " " , " " ,
483483 " " );
484484 buildcc::BaseTarget target (" dummyT" , buildcc::TargetType::Executable,
@@ -537,7 +537,7 @@ TEST(RegisterTestGroup, Register_Test) {
537537 reg.RunTest ();
538538 }
539539
540- buildcc::env::deinit ();
540+ buildcc::Project::Deinit ();
541541 mock ().checkExpectations ();
542542}
543543
@@ -563,7 +563,7 @@ TEST(RegisterTestGroup, Register_TestWithOutput) {
563563 CHECK_TRUE (args.Clean ());
564564
565565 // Make dummy toolchain and target
566- buildcc::env::init (fs::current_path (), fs::current_path ());
566+ buildcc::Project::Init (fs::current_path (), fs::current_path ());
567567 buildcc::Toolchain toolchain (buildcc::ToolchainId::Gcc, " " , " " , " " , " " , " " ,
568568 " " );
569569 buildcc::BaseTarget target (" dummyT" , buildcc::TargetType::Executable,
@@ -676,7 +676,7 @@ TEST(RegisterTestGroup, Register_TestWithOutput) {
676676 CHECK_THROWS (std::exception, reg.RunTest ());
677677 }
678678
679- buildcc::env::deinit ();
679+ buildcc::Project::Deinit ();
680680 mock ().checkExpectations ();
681681}
682682
0 commit comments