Skip to content

Commit d241f22

Browse files
PiotrAniola82vampirehunt2
authored andcommitted
tests
Signed-off-by: PiotrAniola82 <[email protected]>
1 parent 75f49d5 commit d241f22

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

test/data/javacores/javacore.20220606.114458.32888.0001.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ NULL =================================
7070
2CIUSERARG -Djazz.connector.sslEnabledProtocols=TLSv1.2
7171
2CIUSERARG -Dcom.ibm.rational.rpe.tls12only=true
7272
2CIUSERARG -Djazz.connector.algorithm=IbmX509
73-
2CIUSERARG -Xmx4G
73+
2CIUSERARG -Xmx4294967296
7474
2CIUSERARG -Xms4G
7575
2CIUSERARG -Xmn1G
7676
2CIUSERARG -Xgcpolicy:gencon

test/test_javacore_set.py

+16
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,22 @@ def test_parse_xmx(self):
3939
line = "2CIUSERARG -Xmxg"
4040
self.dummy_javacore_set.parse_xmx(line)
4141
self.assertEqual(self.dummy_javacore_set.xmx, UNKNOWN)
42+
#
43+
line = "2CIUSERARG -Xmx32k"
44+
mem = self.snapshot.parse_mem_arg(line)
45+
self.assertEqual(mem, "32k")
46+
#
47+
line = "2CIUSERARG -Xmx32K"
48+
mem = self.snapshot.parse_mem_arg(line)
49+
self.assertEqual(mem, "32K")
50+
#
51+
line = "2CIUSERARG -Xmx323232"
52+
mem = self.snapshot.parse_mem_arg(line)
53+
self.assertEqual(mem, "323232")
54+
#
55+
line = "2CIUSERARG -Xmx32B"
56+
mem = self.snapshot.parse_mem_arg(line)
57+
self.assertEqual(mem, UNKNOWN)
4258

4359
def test_parse_xms(self):
4460
line = "2CIUSERARG -Xms32g"

0 commit comments

Comments
 (0)