Skip to content

Commit

Permalink
Add TCP bitflag checks to TC_SC_4_3 test. (#37347)
Browse files Browse the repository at this point in the history
  • Loading branch information
pidarped authored Feb 7, 2025
1 parent eea382e commit 7a2733e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/python_testing/TC_SC_4_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,19 @@ def verify_t_value(self, t_value):
return True, f"T value ({t_value}) is valid and bit 0 is clear."
else:
return False, f"Bit 0 is not clear. T value ({t_value})"

# Check that the value can be either 2, 4 or 6 depending on whether
# DUT is a TCPClient, TCPServer or both.
if self.check_pics("MCORE.SC.TCP"):
if (T_int & 0x04 != 0):
return True, f"T value ({t_value}) represents valid TCP support info."
else:
return False, f"T value ({t_value}) does not have TCP bits set even though the MCORE.SC.TCP PICS indicates it is required."
else:
if (T_int & 0x04 != 0):
return False, f"T value ({t_value}) has the TCP bits set even though the MCORE.SC.TCP PICS is not set."
else:
return True, f"T value ({t_value}) is valid."
except ValueError:
return False, f"T value ({t_value}) is not a valid integer"

Expand Down

0 comments on commit 7a2733e

Please sign in to comment.