linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.31k stars 1.01k forks source link

run "./runltp -f ltp-aiodio.part3" failed #971

Closed jie2xzhou closed 2 years ago

jie2xzhou commented 2 years ago

The test error is caused by "No such file or directory". The test command is "./runltp -f ltp-aiodio.part3" The call sequence is following: runltp -> ltp-pan -> ltp-aiodio.part3 And I find in no place create "$TMPDIR/aiodio.$$" directory.

output: <<>> tag=FSX034 stime=1662538554 cmdline="fsx-linux -l 500000 -r 4096 -N 10000 $TMPDIR/aiodio.$$/junkfile" contacts="" analysis=exit <<>> /tmp/ltp-qFoktcygy7/aiodio.435919/junkfile: No such file or directory <<>> initiation_status="ok" duration=0 termination_type=exited termination_id=91 corefile=no cutime=0 cstime=1 <<>>

After I change junkfile to exist directory, the test is OK. diff ltp-aiodio.part3_org ltp-aiodio.part3 4,5c4,5 < FSX032 fsx-linux -l 500000 -r 4096 -t 4096 -w 4096 -N 10000 $TMPDIR/aiodio.$$/junkfile < FSX033 fsx-linux -l 500000 -r 4096 -t 2048 -w 2048 -N 10000 $TMPDIR/aiodio.$$/junkfile

FSX032 fsx-linux -l 500000 -r 4096 -t 4096 -w 4096 -N 10000 $TMPDIR/junkfile.$$ FSX033 fsx-linux -l 500000 -r 4096 -t 2048 -w 2048 -N 10000 $TMPDIR/junkfile.$$

test output: tag=FSX032 stime=1662538553 cmdline="fsx-linux -l 500000 -r 4096 -t 4096 -w 4096 -N 10000 $TMPDIR/junkfile.$$" contacts="" analysis=exit <<>> skipping zero size read truncating to largest ever: 0x2c000 truncating to largest ever: 0x55000 truncating to largest ever: 0x5e000 truncating to largest ever: 0x74000 truncating to largest ever: 0x75000 truncating to largest ever: 0x79000 skipping zero size read skipping zero size read skipping zero size read skipping zero size read skipping zero size read truncating to largest ever: 0x7a000 skipping zero size read skipping zero size read skipping zero size read skipping zero size read All operations completed A-OK! <<>> initiation_status="ok" duration=0 termination_type=exited termination_id=0 corefile=no cutime=17 cstime=10 <<>>

metan-ucw commented 2 years ago

This is a duplicate of #261