ENABLE_GCODE_VIEWER set as default in fff_print test and PrusaSlicer.cpp

This commit is contained in:
enricoturri1966 2020-11-12 15:01:59 +01:00
parent 8633e8f25c
commit 8c8ad70c58
3 changed files with 2 additions and 25 deletions

View file

@ -50,12 +50,8 @@ SCENARIO("Model construction", "[Model]") {
print.apply(model, config);
print.process();
boost::filesystem::path temp = boost::filesystem::unique_path();
#if ENABLE_GCODE_VIEWER
print.export_gcode(temp.string(), nullptr, nullptr);
#else
print.export_gcode(temp.string(), nullptr);
#endif // ENABLE_GCODE_VIEWER
REQUIRE(boost::filesystem::exists(temp));
print.export_gcode(temp.string(), nullptr, nullptr);
REQUIRE(boost::filesystem::exists(temp));
REQUIRE(boost::filesystem::is_regular_file(temp));
REQUIRE(boost::filesystem::file_size(temp) > 0);
boost::nowide::remove(temp.string().c_str());