mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-11 06:10:06 +02:00
23 lines
694 B
Plaintext
23 lines
694 B
Plaintext
From 2e7bc8644015c8d79db37ac10b5e4ee280dada53 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
|
Date: Thu, 29 Oct 2020 07:40:26 +0100
|
|
Subject: Test will not run as root
|
|
|
|
|
|
diff --git a/test/run-tests.c b/test/run-tests.c
|
|
index 17fb0e0..0b466ad 100644
|
|
--- a/test/run-tests.c
|
|
+++ b/test/run-tests.c
|
|
@@ -66,7 +66,7 @@ typedef BOOL (WINAPI *sCompareObjectHandles)(_In_ HANDLE, _In_ HANDLE);
|
|
|
|
|
|
int main(int argc, char **argv) {
|
|
-#ifndef _WIN32
|
|
+#if !defined(_WIN32) && !defined(__HAIKU__)
|
|
if (0 == geteuid() && NULL == getenv("UV_RUN_AS_ROOT")) {
|
|
fprintf(stderr, "The libuv test suite cannot be run as root.\n");
|
|
return EXIT_FAILURE;
|
|
--
|
|
2.45.2
|
|
|