Commit 68741a8
selinux: Fix ltp test connect-syscall failure
Fix the following error when running regression tests using LTP as follows:
cd /opt/ltp/
cat runtest/syscalls |grep connect01>runtest/connect-syscall
./runltp -pq -f connect-syscall
Running tests.......
connect01 1 TPASS : bad file descriptor successful
connect01 2 TPASS : invalid socket buffer successful
connect01 3 TPASS : invalid salen successful
connect01 4 TPASS : invalid socket successful
connect01 5 TPASS : already connected successful
connect01 6 TPASS : connection refused successful
connect01 7 TFAIL : connect01.c:146: invalid address family ;
returned -1 (expected -1), errno 22 (expected 97)
INFO: ltp-pan reported some tests FAIL
LTP Version: 20180118
Reported-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>1 parent e5a5ca9 commit 68741a8
1 file changed
+30
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4517 | 4517 | | |
4518 | 4518 | | |
4519 | 4519 | | |
4520 | | - | |
4521 | | - | |
4522 | | - | |
4523 | | - | |
4524 | | - | |
| 4520 | + | |
| 4521 | + | |
| 4522 | + | |
| 4523 | + | |
4525 | 4524 | | |
4526 | 4525 | | |
4527 | 4526 | | |
4528 | | - | |
4529 | | - | |
4530 | | - | |
4531 | | - | |
4532 | | - | |
| 4527 | + | |
| 4528 | + | |
| 4529 | + | |
| 4530 | + | |
4533 | 4531 | | |
4534 | 4532 | | |
4535 | 4533 | | |
| 4534 | + | |
| 4535 | + | |
| 4536 | + | |
| 4537 | + | |
| 4538 | + | |
| 4539 | + | |
| 4540 | + | |
| 4541 | + | |
| 4542 | + | |
4536 | 4543 | | |
4537 | 4544 | | |
4538 | 4545 | | |
| |||
4636 | 4643 | | |
4637 | 4644 | | |
4638 | 4645 | | |
4639 | | - | |
| 4646 | + | |
| 4647 | + | |
4640 | 4648 | | |
4641 | 4649 | | |
4642 | 4650 | | |
4643 | 4651 | | |
4644 | | - | |
| 4652 | + | |
| 4653 | + | |
4645 | 4654 | | |
4646 | 4655 | | |
4647 | 4656 | | |
4648 | 4657 | | |
| 4658 | + | |
| 4659 | + | |
| 4660 | + | |
| 4661 | + | |
| 4662 | + | |
| 4663 | + | |
| 4664 | + | |
| 4665 | + | |
| 4666 | + | |
4649 | 4667 | | |
4650 | 4668 | | |
4651 | 4669 | | |
| |||
0 commit comments