@@ -1086,6 +1086,8 @@ def test(self):
10861086class InterruptTest (GdbSingleHartTest ):
10871087 compile_args = ("programs/interrupt.c" ,)
10881088
1089+ # TODO: There should be a check that a interrupt trigger is really not
1090+ # supported if it is marked as unsupported.
10891091 def early_applicable (self ):
10901092 return self .target .supports_clint_mtime
10911093
@@ -2177,6 +2179,11 @@ def test(self):
21772179 assertEqual (before , after )
21782180
21792181class EtriggerTest (DebugTest ):
2182+ # TODO: There should be a check that a exception trigger is really not
2183+ # supported if it is marked as unsupported.
2184+ def early_applicable (self ):
2185+ return self .target .support_etrigger
2186+
21802187 def setup (self ):
21812188 DebugTest .setup (self )
21822189 self .gdb .b ("main:start" )
@@ -2208,6 +2215,11 @@ def test(self):
22082215class IcountTest (DebugTest ):
22092216 compile_args = ("programs/infinite_loop.S" , )
22102217
2218+ # TODO: There should be a check that an instruction count trigger is
2219+ # really not supported if it is marked as unsupported.
2220+ def early_applicable (self ):
2221+ return self .target .support_icount
2222+
22112223 def setup (self ):
22122224 DebugTest .setup (self )
22132225 self .gdb .b ("main" )
@@ -2240,7 +2252,7 @@ class ItriggerTest(GdbSingleHartTest):
22402252 compile_args = ("programs/interrupt.c" ,)
22412253
22422254 def early_applicable (self ):
2243- return self .target .supports_clint_mtime
2255+ return self .target .supports_clint_mtime and self . target . support_itrigger
22442256
22452257 def setup (self ):
22462258 self .gdb .load ()
0 commit comments