Last change
on this file since 2842 was 2725, checked in by Bruno Cornec, 14 years ago |
- Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
|
-
Property svn:executable
set to
*
|
File size:
570 bytes
|
Rev | Line | |
---|
[1765] | 1 | #!/bin/sh
|
---|
[2725] | 2 | # Copyright 2006 Bernhard Reutner-Fischer
|
---|
| 3 | # Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
---|
[1765] | 4 |
|
---|
[2725] | 5 | . ./testing.sh
|
---|
[1765] | 6 | a="taskset"
|
---|
| 7 |
|
---|
| 8 | # testing "test name" "opts" "expected result" "file inp" "stdin"
|
---|
[2725] | 9 | testing "taskset (get from pid 1)" "$a -p 1 >/dev/null;echo \$?" "0\n" "" ""
|
---|
| 10 | testing "taskset (invalid pid)" "$a -p 0 >/dev/null 2>&1;echo \$?" "1\n" "" ""
|
---|
[1765] | 11 | testing "taskset (set_aff, needs CAP_SYS_NICE)" \
|
---|
[2725] | 12 | "$a 0x1 $SHELL -c '$a -p \$\$ | grep \"current affinity mask: 1\" >/dev/null'; echo \$?" \
|
---|
| 13 | "0\n" "" ""
|
---|
[1765] | 14 |
|
---|
| 15 | unset a
|
---|
| 16 | exit $FAILCOUNT
|
---|
Note:
See
TracBrowser
for help on using the repository browser.