Skip to content

Commit 7a6e3de

Browse files
Merge pull request #1711 from abhijeetk:disable_tvos_fuzz
PiperOrigin-RevId: 764258022
2 parents 012b0dc + 6d0b498 commit 7a6e3de

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

fuzztest/internal/subprocess.cc

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
#include <utility>
3535
#include <vector>
3636

37+
#if defined(__APPLE__)
38+
#include <TargetConditionals.h>
39+
#endif
40+
3741
#include "absl/container/flat_hash_map.h"
3842
#include "absl/functional/function_ref.h"
3943
#include "absl/strings/str_cat.h"
@@ -49,8 +53,10 @@ extern char** environ;
4953

5054
namespace fuzztest::internal {
5155

52-
#if !defined(_MSC_VER) && !(defined(__ANDROID_MIN_SDK_VERSION__) && \
53-
__ANDROID_MIN_SDK_VERSION__ < 28)
56+
#if !defined(_MSC_VER) && \
57+
!(defined(__ANDROID_MIN_SDK_VERSION__) && \
58+
__ANDROID_MIN_SDK_VERSION__ < 28) && \
59+
!(defined(TARGET_OS_TV) && TARGET_OS_TV)
5460

5561
TerminationStatus::TerminationStatus(int status) : status_(status) {}
5662

@@ -335,6 +341,9 @@ TerminationStatus RunCommandWithOutputCallbacks(
335341
FUZZTEST_INTERNAL_CHECK(
336342
false,
337343
"Subprocess library not implemented on older Android NDK versions yet");
344+
#elif defined(TARGET_OS_TV) && TARGET_OS_TV
345+
FUZZTEST_INTERNAL_CHECK(
346+
false, "Subprocess library not implemented on Apple tvOS yet");
338347
#else
339348
SubProcess proc;
340349
return proc.Run(command_line, on_stdout_output, on_stderr_output, environment,

0 commit comments

Comments
 (0)