Skip to content

Commit

Permalink
Coverage++
Browse files Browse the repository at this point in the history
  • Loading branch information
henricasanova committed Sep 6, 2018
1 parent 6523e50 commit 44ed33d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Expand Up @@ -37,8 +37,8 @@ namespace wrench {
* @brief Constructor
*
* @param simulation: a pointer to the simulation object
* @param hostname: the name of the host on which the service will run
* @param num_cores: the number of cores available to the service
* @param hostname: the name of the host on which the workunit execution will run
* @param num_cores: the number of cores available to the workunit executor
* @param ram_utilization: the number of bytes of RAM used by the service
* @param callback_mailbox: the callback mailbox to which a "work done" or "work failed" message will be sent
* @param workunit: the work unit to perform
Expand Down
9 changes: 9 additions & 0 deletions test/simulation/SimpleSimulationTest.cpp
Expand Up @@ -187,6 +187,15 @@ class SimpleSimulationReadyTasksTestWMS : public wrench::WMS {
throw std::runtime_error("Should not be able to forget a pending/running job");
}

// Get the job's service-specific arguments (coverage)
one_task_jobs[job_index]->getServiceSpecificArguments();

// Get the job submit date
double job_submit_date = one_task_jobs[job_index]->getSubmitDate();
if (simulation->getCurrentSimulatedDate() - job_submit_date > 1.0) {
throw std::runtime_error("Job submit date is likely wrong");
}

job_index++;
}

Expand Down

0 comments on commit 44ed33d

Please sign in to comment.