Modify resourceCache unittest buildscript to fix gcc bug
authorYounghyunJoo <yh_.joo@samsung.com>
Wed, 29 Jul 2015 10:01:56 +0000 (19:01 +0900)
committerMadan Lanka <lanka.madan@samsung.com>
Wed, 29 Jul 2015 11:00:06 +0000 (11:00 +0000)
- 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>
service/resource-encapsulation/src/resourceCache/unittests/DataCacheTest.cpp
service/resource-encapsulation/src/resourceCache/unittests/ResourceCacheTest.cpp
service/resource-encapsulation/src/resourceCache/unittests/SConscript

index b51c8cb..31610ba 100644 (file)
@@ -47,16 +47,6 @@ class DataCacheTest : public TestWithMock
         CacheID id;
 
     protected:
-        DataCacheTest()
-        {
-
-        }
-
-        virtual ~DataCacheTest() noexcept(true)
-        {
-
-        }
-
         virtual void SetUp()
         {
             TestWithMock::SetUp();
index ceaae8c..fec80f8 100644 (file)
@@ -36,16 +36,6 @@ class ResourceCacheManagerTest : public TestWithMock
         CacheID id;
 
     protected:
-        ResourceCacheManagerTest()
-        {
-
-        }
-
-        virtual ~ResourceCacheManagerTest() noexcept(true)
-        {
-
-        }
-
         virtual void SetUp()
         {
             TestWithMock::SetUp();
index 4a08b61..15fc270 100644 (file)
@@ -64,7 +64,6 @@ cache_test_env.PrependUnique(LIBS = ['rcs_client', 'rcs_common', 'oc', 'octbstac
 
 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'])