Files
bsdports/devel/libnspr/files/patch-bug1575821
2019-12-26 07:26:06 +00:00

59 lines
1.5 KiB
Plaintext

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