@@ -290,9 +290,34 @@ TEST_F(WholeGraphUpdateTest, MissingEdges) {
290
290
EXPECT_THROW (GraphExec.update (UpdateGraph), sycl::exception );
291
291
}
292
292
293
- TEST_F (WholeGraphUpdateTest, WrongOrderEdges) {
293
+ TEST_F (WholeGraphUpdateTest, DISABLED_WrongOrderNodes) {
294
+ // Test that using an update graph with nodes added in a different order
295
+ // results in an error.
296
+
297
+ auto NodeA = Graph.add (EmptyKernel);
298
+ auto NodeB =
299
+ Graph.add (EmptyKernel, experimental::property::node::depends_on (NodeA));
300
+ auto NodeC =
301
+ Graph.add (EmptyKernel, experimental::property::node::depends_on (NodeA));
302
+ auto NodeD = Graph.add (
303
+ EmptyKernel, experimental::property::node::depends_on (NodeB, NodeC));
304
+
305
+ auto UpdateNodeA = UpdateGraph.add (EmptyKernel);
306
+ auto UpdateNodeC = UpdateGraph.add (
307
+ EmptyKernel, experimental::property::node::depends_on (UpdateNodeA));
308
+ auto UpdateNodeB = UpdateGraph.add (
309
+ EmptyKernel, experimental::property::node::depends_on (UpdateNodeA));
310
+ auto UpdateNodeD = UpdateGraph.add (
311
+ EmptyKernel,
312
+ experimental::property::node::depends_on (UpdateNodeB, UpdateNodeC));
313
+
314
+ auto GraphExec = Graph.finalize (experimental::property::graph::updatable{});
315
+ EXPECT_THROW (GraphExec.update (UpdateGraph), sycl::exception );
316
+ }
317
+
318
+ TEST_F (WholeGraphUpdateTest, DISABLED_WrongOrderEdges) {
294
319
// Test that using an update graph with edges added in a different order
295
- // does not result in an error.
320
+ // results in an error.
296
321
297
322
auto NodeA = Graph.add (EmptyKernel);
298
323
auto NodeB = Graph.add (EmptyKernel);
@@ -316,7 +341,7 @@ TEST_F(WholeGraphUpdateTest, WrongOrderEdges) {
316
341
UpdateGraph.make_edge (UpdateNodeB, UpdateNodeD);
317
342
318
343
auto GraphExec = Graph.finalize (experimental::property::graph::updatable{});
319
- EXPECT_NO_THROW (GraphExec.update (UpdateGraph));
344
+ EXPECT_THROW (GraphExec.update (UpdateGraph), sycl:: exception );
320
345
}
321
346
322
347
TEST_F (WholeGraphUpdateTest, UnsupportedNodeType) {
0 commit comments