- Adjusting tests so they run without referencing /tmp

This commit is contained in:
Ian Roddis
2021-08-23 17:37:33 -03:00
parent 8eb966377f
commit d4c9b3fcee
3 changed files with 22 additions and 20 deletions

View File

@@ -9,7 +9,7 @@ TEST_CASE("Basic Execution", "[forking_executor]") {
daggy::executors::task::ForkingTaskExecutor ex(10);
SECTION("Simple Run") {
daggy::Task task{.command{"/usr/bin/echo", "abc", "123"}};
daggy::Task task{.command{"/bin/echo", "abc", "123"}};
auto rec = ex.runCommand(task);
@@ -24,7 +24,7 @@ TEST_CASE("Basic Execution", "[forking_executor]") {
auto rec = ex.runCommand(task);
REQUIRE(rec.rc == 2);
REQUIRE(rec.errorLog == "/usr/bin/expr: syntax error: missing argument after +\n");
REQUIRE(rec.errorLog.find("syntax error:") != std::string::npos);
REQUIRE(rec.outputLog.empty());
}