]> granicus.if.org Git - strace/commitdiff
tests/file_handle: fix expected output
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 26 Nov 2015 16:48:23 +0000 (16:48 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 26 Nov 2015 16:49:39 +0000 (16:49 +0000)
* tests/file_handle.c (main): Parametrize handle_type
in open_by_handle_at parser output.

tests/file_handle.c

index 9351599adc1c96f55af5abc703478f986c7e2fe1..fb5b93df94a7feb0827009c792ca7a30beaa6a37 100644 (file)
@@ -77,8 +77,8 @@ main(void)
        printf("}, [%d], AT_SYMLINK_FOLLOW) = 0\n", mount_id);
 
        assert(open_by_handle_at(-1, handle, O_RDONLY | O_DIRECTORY));
-       printf("open_by_handle_at(-1, {handle_bytes=%u, handle_type=1, f_handle=0x",
-              handle->handle_bytes);
+       printf("open_by_handle_at(-1, {handle_bytes=%u, handle_type=%d"
+              ", f_handle=0x", handle->handle_bytes, handle->handle_type);
        for (i = 0; i < handle->handle_bytes; ++i)
                printf("%02x", handle->f_handle[i]);
        printf("}, O_RDONLY|O_DIRECTORY) = -1 %s\n",