Merge "Fix mac build for nativebridge tests."
This commit is contained in:
commit
68c19686e8
1 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ namespace android {
|
||||||
static constexpr const char* kTestData = "PreInitializeNativeBridge test.";
|
static constexpr const char* kTestData = "PreInitializeNativeBridge test.";
|
||||||
|
|
||||||
TEST_F(NativeBridgeTest, PreInitializeNativeBridge) {
|
TEST_F(NativeBridgeTest, PreInitializeNativeBridge) {
|
||||||
#ifndef __APPLE_ // Mac OS does not support bind-mount.
|
#ifndef __APPLE__ // Mac OS does not support bind-mount.
|
||||||
#ifndef HAVE_ANDROID_OS // Cannot write into the hard-wired location.
|
#ifndef HAVE_ANDROID_OS // Cannot write into the hard-wired location.
|
||||||
// Try to create our mount namespace.
|
// Try to create our mount namespace.
|
||||||
if (unshare(CLONE_NEWNS) != -1) {
|
if (unshare(CLONE_NEWNS) != -1) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue