Ticket #200: regression_fix_1_of_1_rev_0376b01956f1_Issue__200__added_regression_tests.patch

File regression_fix_1_of_1_rev_0376b01956f1_Issue__200__added_regression_tests.patch, 4.8 KB (added by jan vrany, 6 years ago)
  • RegressionTests__VMCrashTests.st

    # HG changeset patch
    # User Jan Vrany <jan.vrany@fit.cvut.cz>
    # Date 1523455089 -3600
    #      Wed Apr 11 14:58:09 2018 +0100
    # Branch jv
    # Node ID 0376b01956f1ff7296480b4a4791701e0aa6c33a
    # Parent  520545b0b5d921e7844542d6fb0ea71ca43e5200
    Issue #200: added regression tests
    
    Note that these tests are skipped on CI. The reason is that they
    try to allocate a lot of memory causing quite a stress for the
    CI infrastructure (such stress that the whole system inclucing
    hypervisor stopped responding)
    
    https://swing.fit.cvut.cz/projects/stx-jv/ticket/200
    
    diff -r 520545b0b5d9 -r 0376b01956f1 RegressionTests__VMCrashTests.st
    a b  
    774774
    775775!VMCrashTests methodsFor:'tests - regression'!
    776776
     777iter_issue_200: class
     778    "
     779    https://swing.fit.cvut.cz/projects/stx-jv/ticket/200
     780    "
     781    | t e |
     782
     783    self skipIf: (OperatingSystem getEnvironment: 'JENKINS_HOME') notNil description: 'Skipped on CI since it allocates a lot of memorycrashing the CI infrastructure :-('.
     784
     785    t := class new: 46.
     786    Stdout nextPutLine: class name.
     787    [
     788        1 to: 64 do:[:i |
     789            Stdout nextPutLine: 'Iteration ', i printString , ' - ', (t size*2) printString.
     790            t := t , t.
     791        ]
     792    ] on: Error do:[:ex |
     793        Stdout nextPutLine: ex description.
     794        e := ex.
     795    ].
     796    self assert: e class == AllocationFailure
     797
     798    "Created: / 12-04-2018 / 11:20:10 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     799    "Modified: / 12-04-2018 / 22:34:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     800!
     801
    777802test_issue_197a
    778803    "
    779804    https://swing.fit.cvut.cz/projects/stx-jv/ticket/197
     
    788813    OperatingSystem primGetFileAttributes: path
    789814
    790815    "Created: / 27-03-2018 / 09:05:57 / jv"
     816!
     817
     818test_issue_200_Array
     819    "
     820    https://swing.fit.cvut.cz/projects/stx-jv/ticket/200
     821    "
     822    <spawn: true>
     823    <timeout: 660> "11min"
     824
     825    self iter_issue_200: Array
     826
     827    "Created: / 12-04-2018 / 11:21:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     828!
     829
     830test_issue_200_ByteArray
     831    "
     832    https://swing.fit.cvut.cz/projects/stx-jv/ticket/200
     833    "
     834    <spawn: true>
     835    <timeout: 660> "11min"
     836
     837    self iter_issue_200: ByteArray
     838
     839    "Created: / 12-04-2018 / 11:21:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     840!
     841
     842test_issue_200_DoubleArray
     843    "
     844    https://swing.fit.cvut.cz/projects/stx-jv/ticket/200
     845    "
     846    <spawn: true>
     847    <timeout: 660> "11min"
     848
     849    self iter_issue_200: DoubleArray
     850
     851    "Created: / 12-04-2018 / 11:23:33 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     852!
     853
     854test_issue_200_FloatArray
     855    "
     856    https://swing.fit.cvut.cz/projects/stx-jv/ticket/200
     857    "
     858    <spawn: true>
     859    <timeout: 660> "11min"
     860
     861    self iter_issue_200: FloatArray
     862
     863    "Created: / 12-04-2018 / 11:23:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     864!
     865
     866test_issue_200_IntegerArray
     867    "
     868    https://swing.fit.cvut.cz/projects/stx-jv/ticket/200
     869    "
     870    <spawn: true>
     871    <timeout: 660> "11min"
     872
     873    self iter_issue_200: IntegerArray
     874
     875    "Created: / 12-04-2018 / 11:22:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     876!
     877
     878test_issue_200_LongIntegerArray
     879    "
     880    https://swing.fit.cvut.cz/projects/stx-jv/ticket/200
     881    "
     882    <spawn: true>
     883    <timeout: 660> "11min"
     884
     885    self iter_issue_200: LongIntegerArray
     886
     887    "Created: / 12-04-2018 / 11:21:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     888!
     889
     890test_issue_200_SignedIntegerArray
     891    "
     892    https://swing.fit.cvut.cz/projects/stx-jv/ticket/200
     893    "
     894    <spawn: true>
     895    <timeout: 660> "11min"
     896
     897    self iter_issue_200: SignedIntegerArray
     898
     899    "Created: / 12-04-2018 / 11:22:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     900!
     901
     902test_issue_200_SignedLongIntegerArray
     903    "
     904    https://swing.fit.cvut.cz/projects/stx-jv/ticket/200
     905    "
     906    <spawn: true>
     907    <timeout: 660> "11min"
     908
     909    self iter_issue_200: SignedLongIntegerArray
     910
     911    "Created: / 12-04-2018 / 11:21:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     912!
     913
     914test_issue_200_String
     915    "
     916    https://swing.fit.cvut.cz/projects/stx-jv/ticket/200
     917    "
     918    <spawn: true>
     919    <timeout: 660> "11min"
     920
     921    self iter_issue_200: String
     922
     923    "Created: / 12-04-2018 / 11:21:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     924!
     925
     926test_issue_200_Unicode16String
     927    "
     928    https://swing.fit.cvut.cz/projects/stx-jv/ticket/200
     929    "
     930    <spawn: true>
     931    <timeout: 660> "11min"
     932
     933    self iter_issue_200: Unicode16String.
     934
     935    "Created: / 12-04-2018 / 11:17:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     936!
     937
     938test_issue_200_Unicode32String
     939    "
     940    https://swing.fit.cvut.cz/projects/stx-jv/ticket/200
     941    "
     942    <spawn: true>
     943    <timeout: 660> "11min"
     944
     945    self iter_issue_200: Unicode32String.
     946
     947    "Created: / 12-04-2018 / 11:21:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    791948! !
    792949
    793950!VMCrashTests class methodsFor:'documentation'!