Skip to content

Commit

Permalink
Reduced tests
Browse files Browse the repository at this point in the history
  • Loading branch information
standrey committed Dec 9, 2024
1 parent d78b54c commit 9860a55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ target_compile_options(ringbuffer_test PRIVATE "$<$<CONFIG:Debug>:${_COMPILE_DEB

target_compile_options(ringbuffer_test PRIVATE "$<$<CONFIG:Release>:${COMPILE_RELEASE_OPTIONS}>")


enable_testing()

add_test(ringbuffer_test ringbuffer_test)
13 changes: 8 additions & 5 deletions src/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,15 @@ int main(int argc, char* argv[]) {
int consumer_cpu = -1;
if (argc > 1) {
producer_cpu = std::atoi(argv[1]);
if (argc > 2) {
consumer_cpu = std::atoi(argv[2]);
}
}
int i = 0;
while (++i < 100) {

if (argc > 2) {
consumer_cpu = std::atoi(argv[2]);
}

int i = 10;

while (--i >= 0) {
test(producer_cpu, consumer_cpu);
}

Expand Down

0 comments on commit 9860a55

Please sign in to comment.