From 7a2733edc17d735fc8ffe3010a7ed71f5f9fd264 Mon Sep 17 00:00:00 2001 From: Pradip De Date: Fri, 7 Feb 2025 22:47:47 +0000 Subject: [PATCH] Add TCP bitflag checks to TC_SC_4_3 test. (#37347) --- src/python_testing/TC_SC_4_3.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/python_testing/TC_SC_4_3.py b/src/python_testing/TC_SC_4_3.py index e0ce02d2a58398..42082e875fcf29 100644 --- a/src/python_testing/TC_SC_4_3.py +++ b/src/python_testing/TC_SC_4_3.py @@ -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"