]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add additional tests which expose errors in the current net to signed, negative int...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 15 Sep 2021 14:58:58 +0000 (09:58 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 15 Sep 2021 14:58:58 +0000 (09:58 -0500)
src/tests/unit/protocols/radius/time_delta.txt

index 97ae98c219c817559bd115dd2cd95d90dea0e8f2..252bf8c32daee39f5468e99e5963b5c48a7da704 100644 (file)
@@ -48,6 +48,15 @@ match fe 06 04 04 00 41
 decode-pair -
 match Unit-TLV = { Delta-MSec-uint16 = 65 }
 
+encode-pair Unit-TLV.Delta-MSec-int32 = -32768
+match fe 08 0a 06 ff ff 80 00
+
+decode-pair -
+match Unit-TLV = { Delta-MSec-int32 = -32768 }
+
+attribute Unit-TLV.Delta-MSec-int32 = -32768
+match Unit-TLV.Delta-MSec-int32 = -32768
+
 encode-pair Unit-TLV.Delta-MSec-int16 = -32768
 match fe 06 06 04 80 00
 
@@ -112,4 +121,4 @@ decode-pair -
 match Unit-TLV = { Delta-MSec-int32 = 2147483647 }
 
 count
-match 52
+match 64