Skip to content

Commit 867e4fa

Browse files
committed
chore: fix build for macos
1 parent 296ce27 commit 867e4fa

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

cucumber_cpp/library/Application.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "cucumber_cpp/library/engine/ContextManager.hpp"
77
#include "cucumber_cpp/library/engine/FeatureFactory.hpp"
88
#include "cucumber_cpp/library/engine/FeatureInfo.hpp"
9+
#include "cucumber_cpp/library/engine/Result.hpp"
910
#include "cucumber_cpp/library/report/Report.hpp"
1011
#include <CLI/App.hpp>
1112
#include <CLI/CLI.hpp>
@@ -25,7 +26,7 @@ namespace cucumber_cpp::library
2526

2627
struct ResultStatus
2728
{
28-
using Result = cucumber_cpp::library::engine::Result;
29+
using Result = engine::Result;
2930

3031
ResultStatus& operator=(Result result);
3132
explicit operator Result() const;
@@ -64,7 +65,7 @@ namespace cucumber_cpp::library
6465
void DryRunFeatures();
6566
void RunFeatures();
6667
[[nodiscard]] std::vector<std::unique_ptr<engine::FeatureInfo>> GetFeatureTree(std::string_view tagExpression);
67-
[[nodiscard]] cucumber_cpp::library::engine::Result RunFeature(const std::filesystem::path& path, std::string_view tagExpression, report::ReportHandlerV2& reportHandler);
68+
[[nodiscard]] engine::Result RunFeature(const std::filesystem::path& path, std::string_view tagExpression, report::ReportHandlerV2& reportHandler);
6869

6970
Options options;
7071
CLI::App cli;

cucumber_cpp/library/engine/test_helper/TemporaryFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ namespace cucumber_cpp::library::engine::test_helper
3131
std::ofstream TemporaryFile::CreateOfstream()
3232
{
3333
std::filesystem::create_directories(path.parent_path());
34-
return { path };
34+
return std::ofstream{ path };
3535
}
3636
}

cucumber_cpp/library/test/TestApplication.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ namespace cucumber_cpp::library
7070
TEST_F(TestApplication, DryRunFeatureFile)
7171
{
7272
auto tmp = engine::test_helper::TemporaryFile{ "tmpfile.feature" };
73-
const auto path = tmp.Path();
73+
const auto path = tmp.Path().string();
7474

7575
tmp << "Feature: Test feature\n"
7676
" Rule: Test rule\n"
@@ -87,7 +87,7 @@ namespace cucumber_cpp::library
8787
TEST_F(TestApplication, RunFeatureFile)
8888
{
8989
auto tmp = engine::test_helper::TemporaryFile{ "tmpfile.feature" };
90-
const auto path = tmp.Path();
90+
const auto path = tmp.Path().string();
9191

9292
tmp << "Feature: Test feature\n"
9393
" Rule: Test rule\n"
@@ -104,7 +104,7 @@ namespace cucumber_cpp::library
104104
TEST_F(TestApplication, RunFeatureFileWithError)
105105
{
106106
auto tmp = engine::test_helper::TemporaryFile{ "tmpfile.feature" };
107-
const auto path = tmp.Path();
107+
const auto path = tmp.Path().string();
108108

109109
tmp << "Feature: Test feature\n"
110110
" Rule: Test rule\n"

get-winsdk.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)