Skip to content

Commit

Permalink
Change test to reflect DCP load behavior
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lavin <[email protected]>
  • Loading branch information
clavin-xlnx committed Jan 11, 2025
1 parent d9e826c commit c095093
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/src/com/xilinx/rapidwright/design/TestDCPWrite.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public void testAdvancedFlowFlags(@TempDir Path tempDir) {
design.writeCheckpoint(setFalseDCPPath);

Design falseDCP = Design.readCheckpoint(setFalseDCPPath);
Assertions.assertFalse(falseDCP.isAdvancedFlow());
// Write DCP should revert flag to default case (true)
Assertions.assertTrue(falseDCP.isAdvancedFlow());

falseDCP.setAdvancedFlow(true);

Expand All @@ -82,8 +83,5 @@ public void testAdvancedFlowFlags(@TempDir Path tempDir) {
Path overrideDCPPath = tempDir.resolve("override.dcp");
Assertions.assertTrue(falseDCP.isAdvancedFlow());
falseDCP.writeCheckpoint(overrideDCPPath);

Design overrideDCP = Design.readCheckpoint(overrideDCPPath);
Assertions.assertFalse(overrideDCP.isAdvancedFlow());
}
}

0 comments on commit c095093

Please sign in to comment.