Add ChangeToTempDir to TestUtil
authorAlexey Spiridonov <lesha@fb.com>
Sat, 21 Mar 2015 04:58:14 +0000 (21:58 -0700)
committerNoam Lerner <noamler@fb.com>
Wed, 25 Mar 2015 22:35:37 +0000 (15:35 -0700)
commit87a4b661d610545a18f8d743c5d7b5df1c6bcfcd
treef711f3cceca28b77f5c4fadc6ddcc4792ab37117
parent278d263c9532dabb110dcfc74a50fdc92256d101
Add ChangeToTempDir to TestUtil

Summary: It's convenient to be able to write tempfiles in the current directory. This provides a one-liner way of doing that in tests.

Test Plan: unit test

Reviewed By: yfeldblum@fb.com

Subscribers: simpkins, folly-diffs@, yfeldblum

FB internal diff: D1931918

Signature: t1:1931918:1426913634:f988fb3c5061f5909e309dcaf42742d9b2ed18c6
folly/experimental/TestUtil.cpp
folly/experimental/TestUtil.h
folly/experimental/test/TestUtilTest.cpp