@@ -1564,6 +1564,22 @@ namespace {
15641564 testUtils::checkStatusesCount (resultMap, tests, expectedStatusCountMap);
15651565 }
15661566
1567+ TEST_F (Server_Test, precompiled_obj) {
1568+ std::string suite = " precompiled" ;
1569+ setSuite (suite);
1570+ static const std::string source2_c = getTestFilePath (" source2.c" );
1571+ auto projectRequest = createProjectRequest (projectName, suitePath, buildDirRelativePath, srcPaths,
1572+ GrpcUtils::UTBOT_AUTO_TARGET_PATH, false , false , 30 ,
1573+ ErrorMode::FAILING, false , true );
1574+ auto request = GrpcUtils::createFileRequest (std::move (projectRequest), source2_c);
1575+ auto testGen = FileTestGen (*request, writer.get (), TESTMODE);
1576+
1577+ Status status = Server::TestsGenServiceImpl::ProcessBaseTestRequest (testGen, writer.get ());
1578+ ASSERT_TRUE (status.ok ()) << status.error_message ();
1579+
1580+ testUtils::checkMinNumberOfTests (testGen.tests , 1 );
1581+ }
1582+
15671583 TEST_F (Server_Test, Linkage_LD) {
15681584 std::string suite = " linkage-ld" ;
15691585 setSuite (suite);
@@ -1584,7 +1600,7 @@ namespace {
15841600 buildDirRelativePath, std::move (testFilter));
15851601 auto coverageAndResultsWriter = std::make_unique<ServerCoverageAndResultsWriter>(nullptr );
15861602 CoverageAndResultsGenerator coverageGenerator{ runRequest.get (), coverageAndResultsWriter.get () };
1587- utbot::SettingsContext settingsContext{ true , true , 45 , 0 , true , false , ErrorMode::FAILING, false };
1603+ utbot::SettingsContext settingsContext{ true , true , 45 , 0 , true , false , ErrorMode::FAILING, false , false };
15881604 coverageGenerator.generate (false , settingsContext);
15891605
15901606 ASSERT_TRUE (coverageGenerator.getCoverageMap ().empty ());
0 commit comments