diff options
Diffstat (limited to 'tests/migrate_pages.c')
-rw-r--r-- | tests/migrate_pages.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/tests/migrate_pages.c b/tests/migrate_pages.c index 2dfba49cd..390b490bb 100644 --- a/tests/migrate_pages.c +++ b/tests/migrate_pages.c @@ -10,6 +10,7 @@ #include "tests.h" #include "scno.h" +#include "pidns.h" #ifdef __NR_migrate_pages @@ -19,11 +20,21 @@ int main(void) { - const long pid = (long) 0xfacefeedffffffffULL; + PIDNS_TEST_INIT; + + const long pid = (long) 0xfacefeed00000000ULL | getpid(); long rc = syscall(__NR_migrate_pages, pid, 0, 0, 0); - printf("migrate_pages(%d, 0, NULL, NULL) = %ld %s (%m)\n", - (int) pid, rc, errno2name()); + pidns_print_leader(); + printf("migrate_pages(%d%s, 0, NULL, NULL) = %ld", + (int) pid, pidns_pid2str(PT_TGID), rc); + + if (rc < 0) + printf(" %s (%m)\n", errno2name()); + else + printf("\n"); + + pidns_print_leader(); puts("+++ exited with 0 +++"); return 0; } |