summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyungwook Tak <k.tak@samsung.com>2016-12-21 18:50:37 +0900
committerKyungwook Tak <k.tak@samsung.com>2016-12-21 18:50:56 +0900
commit8aa4cfecc48909354348948272e6355aad03fb97 (patch)
tree682e4b1189d3eb423a34480173fdd6347cd2daa8
parent45f01e11d26dac14dd0deaff15dce82a9f4990d1 (diff)
downloadcsr-framework-8aa4cfecc48909354348948272e6355aad03fb97.tar.gz
csr-framework-8aa4cfecc48909354348948272e6355aad03fb97.tar.bz2
csr-framework-8aa4cfecc48909354348948272e6355aad03fb97.zip
Check return value of chdir to fix warning
Change-Id: I10e1fd04d27734fbc060b1626cb248b5008f9bb4 Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
-rw-r--r--test/test-common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-common.h b/test/test-common.h
index cdec29a..1a99416 100644
--- a/test/test-common.h
+++ b/test/test-common.h
@@ -223,7 +223,8 @@ public:
~ScopedChDir()
{
- ::chdir(cdbuf);
+ if (::chdir(cdbuf) == -1)
+ BOOST_MESSAGE("chdir failed but ignore");
}
private: