Skip to content

Commit 7eddb16

Browse files
committed
[compiler-rt] Fix name_to_handle_at.cc test on Overlay2 (for Docker)
This patch aims to fix the test case, name_to_handle_at.cc that fails on Docker. Overlay2 on Docker does not support the current check for the name_to_handle_at() function call of the test case. The proposed fix is to check for /dev/null in the test instead, as this check is supported. Checking for /dev/null has been utilized in the past for other test cases, as well. Differential Revision: https://reviews.llvm.org/D63094 llvm-svn: 363167
1 parent 030df51 commit 7eddb16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/test/sanitizer_common/TestCases/Linux/name_to_handle_at.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ int main(int argc, char **argv) {
1313
malloc(sizeof(*handle) + MAX_HANDLE_SZ));
1414

1515
handle->handle_bytes = MAX_HANDLE_SZ;
16-
int res = name_to_handle_at(AT_FDCWD, argv[0], handle, &mount_id, 0);
16+
int res = name_to_handle_at(AT_FDCWD, "/dev/null", handle, &mount_id, 0);
1717
assert(!res);
1818

1919
free(handle);

0 commit comments

Comments
 (0)