summaryrefslogtreecommitdiff
path: root/test/ruby/test_string_memory.rb
AgeCommit message (Collapse)Author
2024-09-17Replace all GC.disable with EnvUtil.without_gcPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/11635
2024-08-03Reduce noise in object generation count testsYusuke Endoh
The parallel testing framework may create strings in a separate thread. ``` 1) Failure: TestStringMemory#test_byteslice_prefix [D:/a/ruby/ruby/src/test/ruby/test_string_memory.rb:40]: One object allocation is expected, but allocated: [["D:/a/ruby/ruby/src/tool/lib/test/unit/parallel.rb", 42, String, "2240\x00\x00\x00\x00... ``` https://github.com/ruby/ruby/actions/runs/10222885396/job/28288271190?pr=11271#step:23:1026 Notes: Merged: https://github.com/ruby/ruby/pull/11306
2024-08-03Show where objects were allocated on allocation count testsYusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/11297
2024-08-02Show what objects were actually allocated on allocation count testsYusuke Endoh
According to Launchable, these tests fail randomly ``` Failure: TestStringMemory#test_byteslice_prefix [D:/a/ruby/ruby/src/test/ruby/test_string_memory.rb:33]: <1> expected but was <2>. ``` https://app.launchableinc.com/organizations/ruby/workspaces/ruby/data/test-paths/file%3Dtest%2Fruby%2Ftest_string_memory.rb%23%23%23class%3DTestStringMemory%23%23%23testcase%3Dtest_byteslice_prefix?testSessionStatus=flake Notes: Merged: https://github.com/ruby/ruby/pull/11295
2023-07-28Freeze test string to be shared for sharable-middle-substringNobuyoshi Nakada
2023-06-13Add tests to `String#byteslice` memory allocation behaviour. (#1909)Samuel Williams
Notes: Merged-By: ioquatix <[email protected]>