diff options
author | Kyungwook Tak <k.tak@samsung.com> | 2016-12-21 18:50:37 +0900 |
---|---|---|
committer | Kyungwook Tak <k.tak@samsung.com> | 2016-12-21 18:50:56 +0900 |
commit | 8aa4cfecc48909354348948272e6355aad03fb97 (patch) | |
tree | 682e4b1189d3eb423a34480173fdd6347cd2daa8 | |
parent | 45f01e11d26dac14dd0deaff15dce82a9f4990d1 (diff) | |
download | csr-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.h | 3 |
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: |