aboutsummaryrefslogtreecommitdiff
path: root/tests/framework/command_line/CommonOptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/framework/command_line/CommonOptions.cpp')
-rw-r--r--tests/framework/command_line/CommonOptions.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/framework/command_line/CommonOptions.cpp b/tests/framework/command_line/CommonOptions.cpp
index 6fb37470c1..e6f1929bb1 100644
--- a/tests/framework/command_line/CommonOptions.cpp
+++ b/tests/framework/command_line/CommonOptions.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2020 Arm Limited.
+ * Copyright (c) 2018-2020,2024 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -25,7 +25,9 @@
#include "../Framework.h"
#include "../printers/Printers.h"
+#if !defined(_WIN64)
#include <unistd.h>
+#endif // !defined(_WIN64)
using namespace arm_compute::utils;
@@ -43,7 +45,11 @@ CommonOptions::CommonOptions(CommandLineParser &parser)
log_file(parser.add_option<SimpleOption<std::string>>("log-file")),
log_level(),
throw_errors(parser.add_option<ToggleOption>("throw-errors")),
- color_output(parser.add_option<ToggleOption>("color-output", isatty(STDOUT_FILENO))), // Only enable colors by default if we're running in a terminal
+#if !defined(_WIN64)
+ color_output(parser.add_option<ToggleOption>("color-output", isatty(STDOUT_FILENO))), // Only enable colors by default if we're running in a terminal
+#else // !defined(_WIN64)
+ color_output(parser.add_option<ToggleOption>("color-output", 0)),
+#endif // !defined(_WIN64)
pretty_console(parser.add_option<ToggleOption>("pretty-console", false)),
json_file(parser.add_option<SimpleOption<std::string>>("json-file")),
pretty_file(parser.add_option<SimpleOption<std::string>>("pretty-file")),