rcuvgd / tmlinux

Automatically exported from code.google.com/p/tmlinux
0 stars 0 forks source link

review chmod/chown testcases and try to run them on mbe1500 board #117

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
<<<test_start>>>
tag=chmod05 stime=943920111
cmdline="cp -p /opt/ltp-base/testcases/bin/change_owner /tmp;chmod05 "
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
//change_owner: not found
chmod05     1  BROK  :  Fail to modify testdir group ownership
<<<execution_status>>>
duration=1 termination_type=exited termination_id=2 corefile=no
cutime=1 cstime=19
<<<test_end>>>
<<<test_start>>>
tag=chmod06 stime=943920112
cmdline="cp -p /opt/ltp-base/testcases/bin/change_owner /tmp;chmod06"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
chmod06     1  BROK  :  mmap failed
chmod06     2  BROK  :  Remaining cases broken
chmod06     3  BROK  :  Remaining cases broken
chmod06     4  BROK  :  Remaining cases broken
chmod06     5  BROK  :  Remaining cases broken
chmod06     6  BROK  :  Remaining cases broken
chmod06     7  BROK  :  Remaining cases broken
chmod06     8  BROK  :  chmod(2) of testdir_1 failed
<<<execution_status>>>
duration=1 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=18
<<<test_end>>>

<<<test_start>>>
tag=chown03 stime=943920119
cmdline="export change_owner=/opt/ltp-base/testcases/bin/
change_owner;chown03"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
change_owner: chown() of /tmp/choxRXlNo/testfile failed, error 1
chown03     1  BROK  :  Fail to modify Ownership of testfile
<<<execution_status>>>
duration=1 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=14
<<<test_end>>>
<<<test_start>>>
tag=chown03_16 stime=943920120
cmdline="export change_owner=/opt/ltp-base/testcases/bin/
change_owner;chown03_16"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
change_owner: chown() of /tmp/chorrEP2Q/testfile failed, error 1
chown03     1  BROK  :  Fail to modify Ownership of testfile
<<<execution_status>>>
duration=1 termination_type=exited termination_id=2 corefile=no
cutime=1 cstime=13
<<<test_end>>>
<<<test_start>>>
tag=chown04 stime=943920121
cmdline="cp -p /opt/ltp-base/testcases/bin/change_owner /tmp;chown04"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
chown04     1  BROK  :  mmap failed
chown04     2  BROK  :  Remaining cases broken
chown04     3  BROK  :  Remaining cases broken
chown04     4  BROK  :  Remaining cases broken
chown04     5  BROK  :  Remaining cases broken
chown04     6  BROK  :  Remaining cases broken
chown04     7  BROK  :  Remaining cases broken
chown04     8  BROK  :  chmod(2) of testdir_1 failed
<<<execution_status>>>
duration=1 termination_type=exited termination_id=2 corefile=no
cutime=1 cstime=13
<<<test_end>>>
<<<test_start>>>
tag=chown04_16 stime=943920122
cmdline="cp -p /opt/ltp-base/testcases/bin/change_owner /tmp;chown04_16"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
chown04     1  BROK  :  mmap failed
chown04     2  BROK  :  Remaining cases broken
chown04     3  BROK  :  Remaining cases broken
chown04     4  BROK  :  Remaining cases broken
chown04     5  BROK  :  Remaining cases broken
chown04     6  BROK  :  Remaining cases broken
chown04     7  BROK  :  Remaining cases broken
chown04     8  BROK  :  chmod(2) of testdir_1 failed
<<<execution_status>>>
duration=1 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=13
<<<test_end>>>

<<<test_start>>>
tag=fchmod05 stime=943920130
cmdline="cp -p /opt/ltp-base/testcases/bin/change_owner /tmp;fchmod05 "
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
//change_owner: not found
fchmod05    1  BROK  :  Fail to modify testdir group ownerships
<<<execution_status>>>
duration=1 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=19
<<<test_end>>>
<<<test_start>>>
tag=fchmod06 stime=943920131
cmdline="cp -p /opt/ltp-base/testcases/bin/change_owner /tmp;fchmod06"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
//change_owner: not found
fchmod06    1  BROK  :  Fail to modify tfile_1 ownership(s)!
fchmod06    2  BROK  :  Remaining cases broken
<<<execution_status>>>
duration=1 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=23
<<<test_end>>>

<<<test_start>>>
tag=fchown03 stime=943920138
cmdline="cp -p /opt/ltp-base/testcases/bin/change_owner /tmp;fchown03"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
//change_owner: not found
fchown03    1  BROK  :  Fail to modify Ownership of testfile
<<<execution_status>>>
duration=1 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=19
<<<test_end>>>
<<<test_start>>>
tag=fchown03_16 stime=943920139
cmdline="cp -p /opt/ltp-base/testcases/bin/change_owner /tmp;fchown03_16"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
//change_owner: not found
fchown03    1  BROK  :  Fail to modify Ownership of testfile
<<<execution_status>>>
duration=1 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=19
<<<test_end>>>

<<<test_start>>>
tag=fchown04 stime=943920140
cmdline="export change_owner=/opt/ltp-base/testcases/bin/
change_owner;fchown04"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
change_owner: chown() of /tmp/fchOgT2CW/tfile_1 failed, error 1
fchown04    1  BROK  :  Fail to modify tfile_1 ownership(s)!
fchown04    2  BROK  :  Remaining cases broken
<<<execution_status>>>
duration=1 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=12
<<<test_end>>>
<<<test_start>>>
tag=fchown04_16 stime=943920141
cmdline="export change_owner=/opt/ltp-base/testcases/bin/
change_owner;fchown04_16"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
change_owner: chown() of /tmp/fchJreRUU/tfile_1 failed, error 1
fchown04    1  BROK  :  Fail to modify tfile_1 ownership(s)!
fchown04    2  BROK  :  Remaining cases broken
<<<execution_status>>>
duration=1 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=19
<<<test_end>>>

<<<test_start>>>
tag=lchown02 stime=943920147
cmdline="cp -p /opt/ltp-base/testcases/bin/create_link /tmp; lchown02"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
lchown02    1  BROK  :  mmap failed
lchown02    2  BROK  :  Remaining cases broken
lchown02    3  BROK  :  Remaining cases broken
lchown02    4  BROK  :  Remaining cases broken
lchown02    5  BROK  :  Remaining cases broken
lchown02    6  BROK  :  Remaining cases broken
lchown02    7  BROK  :  Remaining cases broken
<<<execution_status>>>
duration=1 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=12
<<<test_end>>>
<<<test_start>>>
tag=lchown02_16 stime=943920148
cmdline="cp -p /opt/ltp-base/testcases/bin/create_link /tmp; lchown02_16"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
lchown02    1  BROK  :  mmap failed
lchown02    2  BROK  :  Remaining cases broken
lchown02    3  BROK  :  Remaining cases broken
lchown02    4  BROK  :  Remaining cases broken
lchown02    5  BROK  :  Remaining cases broken
lchown02    6  BROK  :  Remaining cases broken
lchown02    7  BROK  :  Remaining cases broken
<<<execution_status>>>
duration=1 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=13
<<<test_end>>>

Original issue reported on code.google.com by camelguo@gmail.com on 6 Apr 2009 at 12:47

GoogleCodeExporter commented 8 years ago
all testcases failed with information "mmap failed" is caused by

        bad_addr = mmap(0, 1, PROT_NONE,
                        MAP_PRIVATE_EXCEPT_UCLINUX|MAP_ANONYMOUS, 0, 0);
        if (bad_addr == MAP_FAILED) {
                tst_brkm(TBROK, cleanup, "mmap failed");
        }
        Test_cases[3].pathname = bad_addr;

Original comment by camelguo@gmail.com on 6 Apr 2009 at 2:36

GoogleCodeExporter commented 8 years ago
system() of uclibc cause the other testcases failed

Original comment by camelguo@gmail.com on 6 Apr 2009 at 2:36

GoogleCodeExporter commented 8 years ago
# ./runltpmsh.sh
<<<test_start>>>
tag=lchown02 stime=943920013
cmdline="cp -p $LTPROOT/testcases/bin/create_link $TMP; lchown02"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
//create_link: not found
lchown02    1  BROK  :  Fail to modify tfile_1 ownership(s)!
lchown02    2  BROK  :  Remaining cases broken
lchown02    3  BROK  :  Remaining cases broken
lchown02    4  BROK  :  Remaining cases broken
lchown02    5  BROK  :  Remaining cases broken
lchown02    6  BROK  :  Remaining cases broken
lchown02    7  BROK  :  Remaining cases broken
<<<execution_status>>>
duration=1 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=22
<<<test_end>>>
<<<test_start>>>
tag=lchown02_16 stime=943920015
cmdline="cp -p $LTPROOT/testcases/bin/create_link $TMP; lchown02_16"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
//create_link: not found
lchown02    1  BROK  :  Fail to modify tfile_1 ownership(s)!
lchown02    2  BROK  :  Remaining cases broken
lchown02    3  BROK  :  Remaining cases broken
lchown02    4  BROK  :  Remaining cases broken
lchown02    5  BROK  :  Remaining cases broken
lchown02    6  BROK  :  Remaining cases broken
lchown02    7  BROK  :  Remaining cases broken
<<<execution_status>>>
duration=1 termination_type=exited termination_id=2 corefile=no
cutime=1 cstime=20
<<<test_end>>>
<<<test_start>>>
tag=chmod06 stime=943920016
cmdline="cp -p $LTPROOT/testcases/bin/change_owner $TMP;chmod06"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
//change_owner: not found
chmod06     1  BROK  :  Fail to modify tfile_1 ownership(s)!
chmod06     2  BROK  :  Remaining cases broken
chmod06     3  BROK  :  Remaining cases broken
chmod06     4  BROK  :  Remaining cases broken
chmod06     5  BROK  :  Remaining cases broken
chmod06     6  BROK  :  Remaining cases broken
chmod06     7  BROK  :  Remaining cases broken
chmod06     8  BROK  :  chmod(2) of testdir_1 failed
<<<execution_status>>>
duration=1 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=20
<<<test_end>>>
<<<test_start>>>
tag=chown04 stime=943920017
cmdline="cp -p $LTPROOT/testcases/bin/change_owner $TMP;chown04"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
//change_owner: not found
chown04     1  BROK  :  Fail to modify tfile_1 ownership(s)!
chown04     2  BROK  :  Remaining cases broken
chown04     3  BROK  :  Remaining cases broken
chown04     4  BROK  :  Remaining cases broken
chown04     5  BROK  :  Remaining cases broken
chown04     6  BROK  :  Remaining cases broken
chown04     7  BROK  :  Remaining cases broken
chown04     8  BROK  :  chmod(2) of testdir_1 failed
<<<execution_status>>>
duration=1 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=20
<<<test_end>>>
<<<test_start>>>
tag=chown04_16 stime=943920018
cmdline="cp -p $LTPROOT/testcases/bin/change_owner $TMP;chown04_16"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
incrementing stop
//change_owner: not found
chown04     1  BROK  :  Fail to modify tfile_1 ownership(s)!
chown04     2  BROK  :  Remaining cases broken
chown04     3  BROK  :  Remaining cases broken
chown04     4  BROK  :  Remaining cases broken
chown04     5  BROK  :  Remaining cases broken
chown04     6  BROK  :  Remaining cases broken
chown04     7  BROK  :  Remaining cases broken
chown04     8  BROK  :  chmod(2) of testdir_1 failed
<<<execution_status>>>
duration=2 termination_type=exited termination_id=2 corefile=no
cutime=0 cstime=23
<<<test_end>>>

all testcases failed due to system() of uclibc

Original comment by camelguo@gmail.com on 6 Apr 2009 at 3:29

GoogleCodeExporter commented 8 years ago

Original comment by camelguo@gmail.com on 6 Apr 2009 at 3:41

GoogleCodeExporter commented 8 years ago
after changing runltpmsh.sh to cd $TMP, every testcases passed when 
root=/dev/nfs, 
but sometimes, them cause system crash.

Original comment by camelguo@gmail.com on 13 Apr 2009 at 9:15

GoogleCodeExporter commented 8 years ago

Original comment by camelguo@gmail.com on 13 Apr 2009 at 9:23