summaryrefslogtreecommitdiffstats
path: root/src/tests/common (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-01-15common/bit_util: Replace CLZ/CTZ operations with standardized onesLioncash1-23/+0
Makes for less code that we need to maintain.
2021-01-09tests/ring_buffer: Silence signed/unsigned mismatch warningsReinUsesLisp1-15/+15
2021-01-02general: Fix various spelling errorsMorph1-2/+2
2020-12-06hle: kernel: Separate KScheduler from GlobalSchedulerContext class.bunnei1-55/+0
2020-11-27tests: Fix warning about comparison between signed and unsignedcomex1-2/+2
2020-10-28tests: Fix data race in fibers testReinUsesLisp1-31/+40
Previous to this commit, the tests were using operator[] from unordered_map to query elements but this silently inserts empty elements when they don't exist. If all threads were executed without concurrency, this wouldn't be an issue, but the same unordered_map could be written from two threads at the same time. This is a data race and makes some previously inserted elements invisible for a short period of time, causing them to insert and return an empty element. This default constructed element (a zero) was used to index an array of fibers that asserted when one of them was nullptr, shutting the test session off. To address this issue, lock on thread id reads and writes. This could be a shared mutex to allow concurrent reads, but the definition of std::this_thread::get_id is fuzzy when using non-standard techniques like fibers. I opted to use a standard mutex. While we are at it, fix the included headers.
2020-06-28Core/Common: Address Feedback.Fernando Sahmkow1-1/+1
2020-06-18Common/Fiber: Implement Rewinding.Fernando Sahmkow1-0/+46
2020-06-18Common/Tests: Address FeedbackFernando Sahmkow1-10/+10
2020-06-18Common/Tests: Clang Format.Fernando Sahmkow1-9/+14
2020-06-18Common: Polish Fiber class, add comments, asserts and more tests.Fernando Sahmkow1-1/+94
2020-06-18Tests: Add tests for fibers and refactor/fix Fiber classFernando Sahmkow1-0/+214
2019-03-27Fixes and corrections on formatting.Fernando Sahmkow2-30/+11
2019-03-27Add MultiLevelQueue TestsFernando Sahmkow1-0/+55
2019-03-27Implement intrinsics CountTrailingZeroes and test it.Fernando Sahmkow1-0/+42
2019-02-06common/bitfield: make it endianness-awareWeiyi Wang1-0/+90
2018-09-15Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi1-10/+10
2018-09-08common: Implement a ring bufferMerryMage1-0/+130
2018-08-08externals: Update catch to 2.3.0Lioncash1-1/+1
Updates the library from 2.2.3 to 2.3.0
2018-01-21Format: Run the new clang format on everythingJames Rowe1-1/+3
2017-03-01Common: add ParamPackagewwylele1-0/+25