svn commit: r509663 - head/devel/nspr/files
Jan Beich
jbeich at FreeBSD.org
Fri Aug 23 21:55:42 UTC 2019
Author: jbeich
Date: Fri Aug 23 21:55:41 2019
New Revision: 509663
URL: https://svnweb.freebsd.org/changeset/ports/509663
Log:
devel/nspr: unbreak TEST=on build after r509330
attach.c:170:2: error: unterminated conditional directive
#ifdef _PR_PTHREADS
^
attach.c:275:2: error: expected '}'
}
^
attach.c:109:1: note: to match this '{'
{
^
attach.c:176:8: error: use of undeclared label 'exit_now'
goto exit_now;
^
PR: 239986
Reported by: Ross McKelvie
Added:
head/devel/nspr/files/patch-bug1575821 (contents, props changed)
Modified:
head/devel/nspr/files/patch-tests (contents, props changed)
Added: head/devel/nspr/files/patch-bug1575821
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/nspr/files/patch-bug1575821 Fri Aug 23 21:55:41 2019 (r509663)
@@ -0,0 +1,58 @@
+Unbreak building tests after obsolete platform removals.
+
+--- pr/tests/attach.c.orig 2019-08-19 14:12:12 UTC
++++ pr/tests/attach.c
+@@ -259,6 +259,7 @@ int main(int argc, char **argv)
+ goto exit_now;
+ }
+
++#else
+ if (!debug_mode)
+ failed_already=1;
+ else
+@@ -266,6 +267,7 @@ int main(int argc, char **argv)
+ "either this platform does not have native threads or the\n"
+ "test needs to be written for this platform.\n");
+ goto exit_now;
++#endif
+
+ exit_now:
+ if(failed_already)
+--- pr/tests/nonblock.c.orig 2019-08-19 14:12:12 UTC
++++ pr/tests/nonblock.c
+@@ -23,6 +23,7 @@
+ ** Make win16 unit_time interval 300 milliseconds, others get 100
+ */
+ #define UNIT_TIME 200 /* unit time in milliseconds */
++#else
+ #define UNIT_TIME 100 /* unit time in milliseconds */
+ #endif
+ #define CHUNK_SIZE 10
+--- pr/tests/stack.c.orig 2019-08-19 14:12:12 UTC
++++ pr/tests/stack.c
+@@ -53,7 +53,6 @@ PRFileDesc *errhandle;
+
+ int main(int argc, char **argv)
+ {
+-#if defined(__WINS__))
+ PRInt32 rv, cnt, sum;
+ DataRecord *Item;
+ PRStack *list1, *list2;
+@@ -203,7 +202,6 @@ int main(int argc, char **argv)
+ SUM_OF_NUMBERS(data_cnt * thread_cnt));
+ return 2;
+ }
+-#endif
+ }
+
+ static void stackop(void *thread_arg)
+--- pr/tests/testfile.c.orig 2019-08-19 14:12:12 UTC
++++ pr/tests/testfile.c
+@@ -72,7 +72,6 @@ char *FILE_NAME = "pr_testfile";
+ char *HIDDEN_FILE_NAME = "hidden_pr_testfile";
+ #else
+ char *TEST_DIR = "/tmp/testfile_dir";
+-#endif
+ char *FILE_NAME = "pr_testfile";
+ char *HIDDEN_FILE_NAME = ".hidden_pr_testfile";
+ #endif
Modified: head/devel/nspr/files/patch-tests
==============================================================================
--- head/devel/nspr/files/patch-tests Fri Aug 23 21:55:31 2019 (r509662)
+++ head/devel/nspr/files/patch-tests Fri Aug 23 21:55:41 2019 (r509663)
@@ -1885,16 +1885,16 @@
}
--- pr/tests/stack.c.orig 2019-08-19 14:12:12 UTC
+++ pr/tests/stack.c
-@@ -54,7 +54,7 @@ PRFileDesc *errhandle;
+@@ -53,7 +53,7 @@ PRFileDesc *errhandle;
+
int main(int argc, char **argv)
{
- #if defined(__WINS__))
- PRInt32 rv, cnt, sum;
+ PRInt32 cnt, sum;
DataRecord *Item;
PRStack *list1, *list2;
PRStackElem *node;
-@@ -209,7 +209,7 @@ int main(int argc, char **argv)
+@@ -207,7 +207,7 @@ int main(int argc, char **argv)
static void stackop(void *thread_arg)
{
PRInt32 val, cnt, index, loops;
More information about the svn-ports-head
mailing list