- on gcc-4.6 in linux 64bit environment, gcc bug is occurred.
To fix it, remove the '-Wnoexcept' option in the SConscript file
- additionally, remove constructor, destructor on the unittest class
to prevent build error(noexcept tag) on gcc-4.8
Change-Id: I411ca979e607cdfe33ea50f9fe32b88b434320ed
Signed-off-by: YounghyunJoo <yh_.joo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1970
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
CacheID id;
protected:
- DataCacheTest()
- {
-
- }
-
- virtual ~DataCacheTest() noexcept(true)
- {
-
- }
-
virtual void SetUp()
{
TestWithMock::SetUp();
CacheID id;
protected:
- ResourceCacheManagerTest()
- {
-
- }
-
- virtual ~ResourceCacheManagerTest() noexcept(true)
- {
-
- }
-
virtual void SetUp()
{
TestWithMock::SetUp();
if target_os not in ['windows', 'winrt']:
cache_test_env.AppendUnique(CXXFLAGS = ['-O2', '-g', '-Wall', '-fmessage-length=0', '-std=c++0x'])
- cache_test_env.AppendUnique(CCFLAGS = ['-Wnoexcept'])
if target_os == 'linux':
cache_test_env.AppendUnique(LIBS = ['pthread'])