{
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*/
/* Clean-up thread and Terminate the PAL.*/
CloseHandle(hThread);
CloseHandle(hDupThread);
+
+#endif
+
PAL_Terminate();
return PASS;
}
{
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);
"function failed. Failing test.\n");
}
}
+#endif
PAL_Terminate();
return ( PASS );
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
/* Create multiple threads. */
hThread = CreateThread( NULL, /* no security attributes */
0, /* use default stack size */
Fail( "FAIL:Unexpected thread priority %d returned, expected %d\n",
g_priority, THREAD_PRIORITY_TIME_CRITICAL );
}
-
-
+#endif
PAL_Terminate();
return PASS;
}
-