1 /* 2 * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 * Created by: bing.wei.liu REMOVE-THIS AT intel DOT com 4 * This file is licensed under the GPL license. For the full content 5 * of this license, see the COPYING file at the top level of this 6 * source tree. 7 8 * This test case initializes an attr and sets its schedpolicy, 9 * then create a thread with the attr. 10 11 * 12 * Complete rewrite by Peter W. Morreale <pmorreale AT novell DOT com> 13 * Date: 20/05/2011 14 15 */ 16 17 #include "common.h" 18 19 int main(void) 20 { 21 int rc; 22 struct params p; 23 24 p.policy = SCHED_OTHER; 25 p.priority = PRIORITY_OTHER; 26 p.policy_label = "SCHED_OTHER"; 27 p.status = PTS_UNRESOLVED; 28 rc = create_test_thread(&p); 29 30 if (rc == PTS_PASS) 31 printf("Test PASSED\n"); 32 33 return rc; 34 } 35