diff options
Diffstat (limited to 'shell/ash_test/ash-comm/comm.tests')
-rwxr-xr-x | shell/ash_test/ash-comm/comm.tests | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/shell/ash_test/ash-comm/comm.tests b/shell/ash_test/ash-comm/comm.tests new file mode 100755 index 000000000..671bfc176 --- /dev/null +++ b/shell/ash_test/ash-comm/comm.tests | |||
@@ -0,0 +1,20 @@ | |||
1 | { | ||
2 | echo "#!$THIS_SH" | ||
3 | echo 'procdir=/proc/$$' | ||
4 | #echo 'echo " /proc/N/exe: $(basename $(readlink $procdir/exe))"' | ||
5 | echo 'echo " /proc/N/comm: $(cat $procdir/comm)"' | ||
6 | } >SCRIPT.sh | ||
7 | chmod 755 SCRIPT.sh | ||
8 | |||
9 | # comm field was wrong if CONFIG_FEATURE_PREFER_APPLETS=y | ||
10 | echo './SCRIPT.sh:' | ||
11 | ./SCRIPT.sh | ||
12 | |||
13 | # comm field was wrong if CONFIG_FEATURE_PREFER_APPLETS=y | ||
14 | echo 'exec ./SCRIPT.sh:' | ||
15 | (exec ./SCRIPT.sh) | ||
16 | |||
17 | echo 'sh ./SCRIPT.sh:' | ||
18 | $THIS_SH ./SCRIPT.sh | ||
19 | |||
20 | rm SCRIPT.sh | ||