pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
coreclr-git: Disably unsupported tests
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Sun Feb 21 00:20:33 2016 +0100
Changeset: e76bac7db50388e4e42d63c0e4fc2c7f562bb5e8
Modified Files:
coreclr-git/distinfo
Added Files:
coreclr-git/patches/patch-src_pal_tests_palsuite_threading_DuplicateHandle_test8_test8.c
coreclr-git/patches/patch-src_pal_tests_palsuite_threading_GetCurrentThread_test1_thread.c
coreclr-git/patches/patch-src_pal_tests_palsuite_threading_GetCurrentThread_test2_test2.c
Log Message:
coreclr-git: Disably unsupported tests
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e76bac7db50388e4e42d63c0e4fc2c7f562bb5e8
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
coreclr-git/distinfo | 3 +++
...alsuite_threading_DuplicateHandle_test8_test8.c | 28 ++++++++++++++++++++
...suite_threading_GetCurrentThread_test1_thread.c | 27 +++++++++++++++++++
...lsuite_threading_GetCurrentThread_test2_test2.c | 30 ++++++++++++++++++++++
4 files changed, 88 insertions(+)
diffs:
diff --git a/coreclr-git/distinfo b/coreclr-git/distinfo
index 620d25a..0769b40 100644
--- a/coreclr-git/distinfo
+++ b/coreclr-git/distinfo
@@ -5,3 +5,6 @@ SHA1 (patch-src_pal_inc_pal.h) = 7d3ef148af8b1b24067ba4cb5efc12581ebc6881
SHA1 (patch-src_pal_src_cruntime_printf.cpp) = 8a86c57e1fe3953d158e1860f04bd19d7df1fe08
SHA1 (patch-src_pal_src_cruntime_printfcpp.cpp) = 4d1ba5fea45402259c67428506f39d9c3128ecbd
SHA1 (patch-src_pal_src_cruntime_silent__printf.cpp) = 0922321ad05a90cc3b87b1e2663ff4d0b2e4717e
+SHA1 (patch-src_pal_tests_palsuite_threading_DuplicateHandle_test8_test8.c) = 24f390d5d829a84111a86489edd8b883b4085c75
+SHA1 (patch-src_pal_tests_palsuite_threading_GetCurrentThread_test1_thread.c) = 8f5f254d3dd20a6a1ccafb1223fbf7c779825b15
+SHA1 (patch-src_pal_tests_palsuite_threading_GetCurrentThread_test2_test2.c) = bccf301079e6e03cd7543c16b4943bfea0bf9c70
diff --git a/coreclr-git/patches/patch-src_pal_tests_palsuite_threading_DuplicateHandle_test8_test8.c b/coreclr-git/patches/patch-src_pal_tests_palsuite_threading_DuplicateHandle_test8_test8.c
new file mode 100644
index 0000000..ea078e4
--- /dev/null
+++ b/coreclr-git/patches/patch-src_pal_tests_palsuite_threading_DuplicateHandle_test8_test8.c
@@ -0,0 +1,28 @@
+$NetBSD$
+
+--- src/pal/tests/palsuite/threading/DuplicateHandle/test8/test8.c.orig 2016-01-28 19:04:13.000000000 +0000
++++ src/pal/tests/palsuite/threading/DuplicateHandle/test8/test8.c
+@@ -36,6 +36,13 @@ int __cdecl main(int argc, char* argv[])
+ {
+ return (FAIL);
+ }
++
++#if !HAVE_SCHED_OTHER_ASSIGNABLE
++ /* Defining thread priority for SCHED_OTHER is implementation defined.
++ Some platforms like NetBSD cannot reassign it as they are dynamic.
++ */
++ printf("paltest_duplicatehandle_test8 has been disabled on this platform\n");
++#else
+
+ /* Create a thread.*/
+ hThread = CreateThread(NULL, /* SD*/
+@@ -143,6 +150,9 @@ int __cdecl main(int argc, char* argv[])
+ /* Clean-up thread and Terminate the PAL.*/
+ CloseHandle(hThread);
+ CloseHandle(hDupThread);
++
++#endif
++
+ PAL_Terminate();
+ return PASS;
+ }
diff --git a/coreclr-git/patches/patch-src_pal_tests_palsuite_threading_GetCurrentThread_test1_thread.c b/coreclr-git/patches/patch-src_pal_tests_palsuite_threading_GetCurrentThread_test1_thread.c
new file mode 100644
index 0000000..404467b
--- /dev/null
+++ b/coreclr-git/patches/patch-src_pal_tests_palsuite_threading_GetCurrentThread_test1_thread.c
@@ -0,0 +1,27 @@
+$NetBSD$
+
+--- src/pal/tests/palsuite/threading/GetCurrentThread/test1/thread.c.orig 2016-01-28 19:04:13.000000000 +0000
++++ src/pal/tests/palsuite/threading/GetCurrentThread/test1/thread.c
+@@ -30,7 +30,13 @@ int __cdecl main( int argc, char **argv
+ {
+ return ( FAIL );
+ }
+-
++
++#if !HAVE_SCHED_OTHER_ASSIGNABLE
++ /* Defining thread priority for SCHED_OTHER is implementation defined.
++ Some platforms like NetBSD cannot reassign it as they are dynamic.
++ */
++ printf("paltest_getcurrentthread_test1 has been disabled on this platform\n");
++#else
+ hThread = GetCurrentThread();
+
+ nPriority = GetThreadPriority(hThread);
+@@ -79,6 +85,7 @@ int __cdecl main( int argc, char **argv
+ "function failed. Failing test.\n");
+ }
+ }
++#endif
+
+ PAL_Terminate();
+ return ( PASS );
diff --git a/coreclr-git/patches/patch-src_pal_tests_palsuite_threading_GetCurrentThread_test2_test2.c b/coreclr-git/patches/patch-src_pal_tests_palsuite_threading_GetCurrentThread_test2_test2.c
new file mode 100644
index 0000000..bb3e7e1
--- /dev/null
+++ b/coreclr-git/patches/patch-src_pal_tests_palsuite_threading_GetCurrentThread_test2_test2.c
@@ -0,0 +1,30 @@
+$NetBSD$
+
+--- src/pal/tests/palsuite/threading/GetCurrentThread/test2/test2.c.orig 2016-01-28 19:04:13.000000000 +0000
++++ src/pal/tests/palsuite/threading/GetCurrentThread/test2/test2.c
+@@ -90,7 +90,12 @@ INT __cdecl main( INT argc, CHAR **argv
+ return( FAIL );
+ }
+
+-
++#if !HAVE_SCHED_OTHER_ASSIGNABLE
++ /* Defining thread priority for SCHED_OTHER is implementation defined.
++ Some platforms like NetBSD cannot reassign it as they are dynamic.
++ */
++ printf("paltest_duplicatehandle_test8 has been disabled on this platform\n");
++#else
+ /* Create multiple threads. */
+ hThread = CreateThread( NULL, /* no security attributes */
+ 0, /* use default stack size */
+@@ -132,10 +137,8 @@ INT __cdecl main( INT argc, CHAR **argv
+ Fail( "FAIL:Unexpected thread priority %d returned, expected %d\n",
+ g_priority, THREAD_PRIORITY_TIME_CRITICAL );
+ }
+-
+-
++#endif
+
+ PAL_Terminate();
+ return PASS;
+ }
+-
Home |
Main Index |
Thread Index |
Old Index