diff options
-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: |