Handle tmp dir on Android
authorMichael Lee <mzlee@fb.com>
Fri, 29 Jan 2016 18:32:31 +0000 (10:32 -0800)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Fri, 29 Jan 2016 19:20:30 +0000 (11:20 -0800)
Summary:
There is no universally accessible tmpdir on Android which
means mkstemp fails. This diff calls a function that the test runner
should provide to fill a valid temporary directory.

Reviewed By: yangchi

Differential Revision: D2842034

fb-gh-sync-id: 9b826757bd750af016a18adccd5a21174be644d6

folly/test/FBStringTest.cpp

index d9b5948fba99380fef243c73d7dfd9c1deeb1ced..78d6514affabc450b9f75732accd062bfae953a7 100644 (file)
@@ -33,6 +33,7 @@
 #include <folly/Portability.h>
 #include <folly/Random.h>
 #include <folly/Conv.h>
+#include <folly/experimental/TestUtil.h>
 
 using namespace std;
 using namespace folly;