*** RT_001 start *******************************
TEST_SUITE: sched_yield
TEST_NUMBER: 0
ARGS:
[child] running core 1
[parent] running core 0
[parent] child process migrate/bind to core 0
[parent] parent process bind to core 0
[parent] send sched_yield.
[child] before migrate prevcore 1, nowcore 0
[child] End process.
[parent] End process.
RESULT: check end order, [end child] -> [end parent]
*** RT_001: PASSED

*** LT_001 start *******************************
fork01      1  TPASS  :  fork() returned 18705
fork01      2  TPASS  :  child pid and fork() return agree: 18705
*** LT_001: PASSED (ok:2)

*** LT_002 start *******************************
fork02      0  TINFO  :  Inside parent
fork02      0  TINFO  :  exit status of wait 0
fork02      1  TPASS  :  test 1 PASSED
*** LT_002: PASSED (ok:1)

*** LT_003 start *******************************
fork03      0  TINFO  :  process id in parent of child from fork : 18843
fork03      1  TPASS  :  test 1 PASSED
*** LT_003: PASSED (ok:1)

*** LT_004 start *******************************
fork04      1  TPASS  :  Env var TERM unchanged after fork(): xterm-256color
fork04      2  TPASS  :  Env var NoTSetzWq unchanged after fork(): getenv() does not find variable set
fork04      3  TPASS  :  Env var TESTPROG unchanged after fork(): FRKTCS04
*** LT_004: PASSED (ok:3)

*** LT_005 start *******************************
fork07      0  TINFO  :  Forking 100 children
fork07      0  TINFO  :  Forked all 100 children, now collecting
fork07      0  TINFO  :  Collected all 100 children
fork07      1  TPASS  :  100/100 children read correctly from an inheritted fd
*** LT_005: PASSED (ok:1)

*** LT_006 start *******************************
fork08      0  TINFO  :  parent forksval: 1
fork08      0  TINFO  :  second child got char: b
fork08      1  TPASS  :  Test passed in childnumber 2
fork08      0  TINFO  :  parent forksval: 1
fork08      0  TINFO  :  parent forksval: 2
fork08      0  TINFO  :  exit status of wait  expected 0 got 0
fork08      1  TPASS  :  parent test PASSED
fork08      0  TINFO  :  exit status of wait  expected 0 got 0
fork08      2  TPASS  :  parent test PASSED
fork08      0  TINFO  :  exit status of wait  expected 0 got 0
fork08      3  TPASS  :  parent test PASSED
fork08      0  TINFO  :  Number of processes forked is 2
*** LT_006: PASSED (ok:4)
