Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
9f01575f
Commit
9f01575f
authored
Jul 23, 2014
by
Dominic Hamon
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #33 from predmond/master
fix building on ubuntu
parents
6a6fc70c
52b3004a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
benchmark.cc
src/benchmark.cc
+1
-1
CMakeLists.txt
test/CMakeLists.txt
+1
-1
No files found.
src/benchmark.cc
View file @
9f01575f
...
...
@@ -345,7 +345,7 @@ int BenchmarkFamilies::AddBenchmark(Benchmark* family) {
mutex_lock
l
(
&
benchmark_mutex
);
// This loop attempts to reuse an entry that was previously removed to avoid
// unncessary growth of the vector.
for
(
in
t
index
=
0
;
index
<
families_
.
size
();
++
index
)
{
for
(
size_
t
index
=
0
;
index
<
families_
.
size
();
++
index
)
{
if
(
families_
[
index
]
==
nullptr
)
{
families_
[
index
]
=
family
;
return
index
;
...
...
test/CMakeLists.txt
View file @
9f01575f
...
...
@@ -4,5 +4,5 @@ target_link_libraries(benchmark_test benchmark ${CMAKE_THREAD_LIBS_INIT})
# Test harness for regex wrapper
add_executable
(
re_test
${
RE_FILES
}
"re_test.cc"
)
target_link_libraries
(
re_test benchmark_re
${
CMAKE_THREAD_LIBS_INIT
}
gtest gtest_main
)
target_link_libraries
(
re_test benchmark_re
gtest gtest_main
${
CMAKE_THREAD_LIBS_INIT
}
)
add_test
(
regex re_test
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment