Mukund Sivaraman
adb92afc6f
[master] Add libb10-cc.la to tests Makefile.am
2012-10-11 10:04:25 -07:00
Jelte Jansen
c28be089b9
[2278] Add temporary suppression for false positives
2012-10-11 10:04:25 -07:00
Jelte Jansen
998645aaeb
[2278] remove a bit of dead code
2012-10-11 10:04:25 -07:00
Jelte Jansen
55d94bb5f7
[2278] A number of cppcheck fixes
...
and whitespace things, while i was there
2012-10-11 10:04:25 -07:00
JINMEI Tatuya
3e2a372012
[2340] corrected the position of closing 'fi' for an 'if GXX = yes'.
2012-10-11 10:04:24 -07:00
JINMEI Tatuya
5cc254b16b
[2340] added comment about why we need to explicitly define empty dtor.
2012-10-11 10:04:24 -07:00
JINMEI Tatuya
b05952bb39
[2340] added workaround for the clang++ "unused arguments" warn/error.
...
by specifying -Qunused-arguments. Also, as a cleanup for better organization
I moved compiler specific settings to earlier part of configure.ac, where
this workaround was added.
2012-10-11 10:04:22 -07:00
JINMEI Tatuya
b770f51096
[2340] Revert "[2340] specify thread flag as part CPPFLAGS, not LDFLAGS."
...
This reverts commit daf81c8846
.
I believe the sense of the change is correct, but it has effects on
other OSes, so it's probably better to use clang specific workaround
(will commit it later).
2012-10-11 10:04:19 -07:00
JINMEI Tatuya
9ef297b7fa
[2340] Revert "[2340] specify -pthread in CXXFLAGS and via system-indepedent variable."
...
This reverts commit d62a1e4250
.
I believe the sense of the change is correct, but it has effects on
other OSes, so it's probably better to use clang specific workaround
(will commit it later).
2012-10-11 10:04:13 -07:00
JINMEI Tatuya
a017390f15
[2340] specify -pthread in CXXFLAGS and via system-indepedent variable.
...
specifying it in LDFLAGS would trigger build error with some versions of clang.
hardcoding "-pthread" is less portable.
2012-10-11 10:04:11 -07:00
JINMEI Tatuya
6fc2942362
[2340] removed an effectively unused variable. clang would complain.
2012-10-11 10:04:08 -07:00
JINMEI Tatuya
1426bb5c63
[2340] specify thread flag as part CPPFLAGS, not LDFLAGS.
...
newer version of clang treats the latter as a fatal error.
2012-10-11 10:04:05 -07:00
JINMEI Tatuya
73f22adb34
[2340] explictly define destructor of mostly empty template class.
...
without this new versions of clang++ seem to complain that instantiation of
the class results in an unused variable.
2012-10-11 10:03:58 -07:00
Jelte Jansen
030aef1998
[2349] Ignore EXPECT_DEATH when run in valgrind
...
Valgrind complains (probably rightfully so) that memory is leaking in death-tests. This has been reported upstream, but is not addressed yet, and may not be in the near future, if at all (one response was don't use EXPECT_DEATH).
So I added a checker function, *if* valgrind headers are available, that returns true if the tests are run under valgrind. Death tests are now ignored if so.
Note that we should be very careful about using this; and only use it for things we are sure valgrind can't help, since it is possible to do things differently when using valgrind, which kind of defeats its purpose
2012-10-11 17:22:23 +02:00
Mukund Sivaraman
eb84acab80
[2268] Fix disabled tests without using InMemoryClient::add()
...
Also remove direct tests for add() as the method has been removed now.
2012-10-11 20:13:05 +05:30
Tomek Mrugalski
0375b6599c
[master] Compilation fix for OpenBSD.
...
For some reason comparison operator for std::vector<uint8_t> does
not work with EXPECT_EQ macro on OpenBSD.
2012-10-11 16:14:28 +02:00
Tomek Mrugalski
50f42396ef
[master] Warning shown on Debian6 with g++ 4.4 removed.
2012-10-11 16:07:32 +02:00
Tomek Mrugalski
64bba5b1c6
[master] Compilation fix for Solaris in LeaseMgr
2012-10-11 15:33:40 +02:00
Mukund Sivaraman
31fdd062b5
Merge branch 'master' into trac2268
...
Conflicts:
src/lib/datasrc/memory/Makefile.am
src/lib/datasrc/memory/memory_client.cc
src/lib/datasrc/memory/memory_client.h
src/lib/datasrc/tests/memory/memory_client_unittest.cc
2012-10-11 18:52:37 +05:30
Tomek Mrugalski
7ad6e5687c
[master] Merge branch 'trac2237' (Subnet/pool storage for DHCPv4)
...
Conflicts:
ChangeLog
src/lib/dhcp/cfgmgr.h
src/lib/dhcp/tests/cfgmgr_unittest.cc
2012-10-11 14:59:58 +02:00
Tomek Mrugalski
a78e560343
[2237] Changes after review.
2012-10-11 14:55:04 +02:00
Tomek Mrugalski
de5fd0b128
[master] Merge branch 'trac2269' (configuration for b10-dhcp6)
2012-10-11 14:40:04 +02:00
Tomek Mrugalski
028bed9014
[2269] Typo fixed.
2012-10-11 14:30:28 +02:00
Tomek Mrugalski
4784ca566b
[master] Merge branch 'trac2140' (Abstract API for DHCP database)
...
Conflicts:
ChangeLog
src/lib/dhcp/tests/Makefile.am
2012-10-11 14:15:10 +02:00
Jelte Jansen
a6c74caf3d
[2223] small change in comment
2012-10-11 14:09:15 +02:00
Jelte Jansen
f6616492db
[2223] revert vector implementation, use a count function
2012-10-11 14:06:19 +02:00
Stephen Morris
07b793c8f1
[2304] Minor changes to header comments
2012-10-11 12:46:51 +01:00
Tomek Mrugalski
df196f7609
[2140] LeaseMgr minor tweaks, ChangeLog updated.
2012-10-11 13:40:11 +02:00
Mukund Sivaraman
5fadea676f
[2266] Update ChangeLog
trac2351_base
2012-10-11 12:21:42 +05:30
Mukund Sivaraman
532ac3d005
Merge branch 'master' into trac2266
2012-10-11 12:19:00 +05:30
JINMEI Tatuya
ca61588dc2
[2332] (unrelated) style cleanups: func name convention, () after sizeof.
2012-10-10 23:01:59 -07:00
JINMEI Tatuya
dc5492b840
[2332] (unrelated) cleanup: removed unnecesary failure case in Locker.
...
We don't have to worry about the case lock() throws in the constructor.
In that case the destructor won't be called.
This simplification will make the code simpler, and we can also make
mutex_ member variable a const.
2012-10-10 23:01:59 -07:00
JINMEI Tatuya
6962458ec4
[2332] added class documentation
2012-10-10 23:01:59 -07:00
JINMEI Tatuya
28b3efcf61
[2332] added more tests and some more comments
2012-10-10 23:01:59 -07:00
JINMEI Tatuya
43959b29a6
[2332] supported wait() and signal()
2012-10-10 23:01:59 -07:00
JINMEI Tatuya
c0d50a2041
[2332] removed unused changed
2012-10-10 23:01:58 -07:00
JINMEI Tatuya
bc7551cca8
[2332] makefile updates for the new files
2012-10-10 23:01:58 -07:00
JINMEI Tatuya
8722bc208f
[2332] added initial sets of condition variable encapsulation
...
currently it does almost nothing except initialize and cleanup
2012-10-10 23:01:58 -07:00
JINMEI Tatuya
1adba86b37
[2332] unrelated cleanup: noncopyable doesn't have to be public inheritance
...
(maybe a matter of taste, though)
2012-10-10 23:01:58 -07:00
JINMEI Tatuya
e2d1490eb8
[master] minor wording fix in a README file.
...
committing at my discretion.
2012-10-10 15:14:52 -07:00
JINMEI Tatuya
73aebe53f2
[2340] Merge branch 'master' into trac2340
2012-10-10 14:52:37 -07:00
JINMEI Tatuya
f2b4e736bb
[master] changelog for #2339
2012-10-10 13:50:21 -07:00
JINMEI Tatuya
88db890d8d
[master] Merge branch 'trac2339'
2012-10-10 13:38:20 -07:00
Michal 'vorner' Vaner
65cddb545c
Compilation fix: usual static_cast<X*>(NULL)
...
Sunstudio is unhappy with plain NULL inside EXPECT_EQ and thinks it is
int. This makes it think otherwise.
2012-10-10 20:42:46 +02:00
Michal 'vorner' Vaner
99fd73694c
Remove extra comma at the end of enum
...
This should fix compilation issue on sunstudio.
2012-10-10 20:28:16 +02:00
Michal 'vorner' Vaner
234026e024
[2207] Document the local zone loader
2012-10-10 20:17:38 +02:00
JINMEI Tatuya
b10b39f8ac
[2340] corrected the position of closing 'fi' for an 'if GXX = yes'.
2012-10-10 11:02:24 -07:00
Tomek Mrugalski
a1983f4368
[2140] DUID no longer returns unsafe references, tests updated.
2012-10-10 19:28:09 +02:00
Tomek Mrugalski
56dd564263
[2140] Renew, rebind timers added to lease4, recycle-timer removed
2012-10-10 19:27:28 +02:00
JINMEI Tatuya
b6cfd9d20c
[master] added changelog for #2244
2012-10-10 09:32:40 -07:00