Skip to content

Commit

Permalink
Deleted unnecessary variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
hchen99 committed Oct 24, 2024
1 parent ce5c751 commit cf7ded2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 3 additions & 5 deletions test/SIM_test_dr/RUN_test/unit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,12 @@
# Test trick.get_data_record_group(<drg_name>) for getting the drg pointer by its name
# Check the name of the obtained drg instead of the drg pointer
for i in range(num_drgs):
drx.drt.drg = trick.get_data_record_group(dr_file_name_drg_name_tuple[i][1])
TRICK_EXPECT_EQ( drx.drt.drg.get_group_name(), dr_file_name_drg_name_tuple[i][1], test_suite , "get drg by name" )
TRICK_EXPECT_EQ( trick.get_data_record_group(dr_file_name_drg_name_tuple[i][1]).get_group_name(), dr_file_name_drg_name_tuple[i][1], test_suite , "get drg by name" )

# Test trick.get_data_record_group(<drg_idx) for getting the drg pointer by its id number
# Test trick.get_data_record_group_by_idx(<drg_idx) for getting the drg pointer by its id number
# Check the name of the obtained drg instead of the drg pointer
for i in range(num_drgs):
drx.drt.drg = trick.get_data_record_group_by_idx(i)
TRICK_EXPECT_EQ( drx.drt.drg.get_group_name(), dr_file_name_drg_name_tuple[i][1], test_suite , "get drg by idx" )
TRICK_EXPECT_EQ( trick.get_data_record_group_by_idx(i).get_group_name(), dr_file_name_drg_name_tuple[i][1], test_suite , "get drg by idx" )


trick.stop(1.0)
2 changes: 0 additions & 2 deletions test/SIM_test_dr/models/dr/include/DR.hh
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ class DRTypes {
MIX_BITS mixB;


Trick::DataRecordGroup * drg;

DRTypes();
~DRTypes();

Expand Down

0 comments on commit cf7ded2

Please sign in to comment.