Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346509
b: refs/heads/master
c: 2bf1cbf
h: refs/heads/master
i:
  346507: a72582a
v: v3
  • Loading branch information
Dave Jones authored and Linus Torvalds committed Dec 18, 2012
1 parent 56305ac commit 163a410
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5a55f8bb2d0c4e5c05837b688ed1b2132a0ed0e7
refs/heads/master: 2bf1cbf1c616b4dd85a3a8a715af9c5701c16a91
6 changes: 4 additions & 2 deletions trunk/tools/testing/selftests/kcmp/kcmp_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,17 @@ int main(int argc, char **argv)
/* This one should return same fd */
ret = sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd1);
if (ret) {
printf("FAIL: 0 expected but %d returned\n", ret);
printf("FAIL: 0 expected but %d returned (%s)\n",
ret, strerror(errno));
ret = -1;
} else
printf("PASS: 0 returned as expected\n");

/* Compare with self */
ret = sys_kcmp(pid1, pid1, KCMP_VM, 0, 0);
if (ret) {
printf("FAIL: 0 expected but %li returned\n", ret);
printf("FAIL: 0 expected but %li returned (%s)\n",
ret, strerror(errno));
ret = -1;
} else
printf("PASS: 0 returned as expected\n");
Expand Down

0 comments on commit 163a410

Please sign in to comment.