Source: tests/jobgraph/cycle.cpp
16 #include <tests/myratest.h> 20 ADD_TEST(
"cycle",
"[jobgraph]")
30 uint64_t j0 = G.
insert([](){});
31 uint64_t j1 = G.
insert([](){});
32 uint64_t j2 = G.
insert([](){});
33 uint64_t j3 = G.
insert([](){});
34 uint64_t j4 = G.
insert([](){});
40 REQUIRE( !verify(G) );
uint64_t insert(const Functor &f)
Inserts a Job (in the form of a C++11 lambda) to this JobGraph, returns its unique JobID...
Definition: UserJobGraph.h:139
Given a JobGraph G, verifies it has valid topology.
void add_edge(uint64_t j0, uint64_t j1)
Adds a dependency, that Job j0 must execute before Job j1.
Definition: UserJobGraph.h:159
Container-like JobGraph class, can be manually populated with user-defined Job's and dependencies...
Container-like JobGraph class, can be manually populated with user-defined Job's and dependencies...
Definition: UserJobGraph.h:31
Results: [PASS]
Go back to Summary of /test programs.