summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmy Kwan <amy.kwan1@ibm.com>2019-06-12 14:19:24 +0000
committerAmy Kwan <amy.kwan1@ibm.com>2019-06-12 14:19:24 +0000
commit5387380520179d5fb5fd2575e8aed5be8cf52985 (patch)
tree9bc47e436a687678a0253a801e9814a8e64f966a
parentab22c97d27431a7a987f681cbe79e0ae0205fc67 (diff)
downloadcompiler-rt-5387380520179d5fb5fd2575e8aed5be8cf52985.tar.gz
[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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@363167 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/sanitizer_common/TestCases/Linux/name_to_handle_at.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sanitizer_common/TestCases/Linux/name_to_handle_at.cc b/test/sanitizer_common/TestCases/Linux/name_to_handle_at.cc
index 47c6a1862..e23771072 100644
--- a/test/sanitizer_common/TestCases/Linux/name_to_handle_at.cc
+++ b/test/sanitizer_common/TestCases/Linux/name_to_handle_at.cc
@@ -13,7 +13,7 @@ int main(int argc, char **argv) {
malloc(sizeof(*handle) + MAX_HANDLE_SZ));
handle->handle_bytes = MAX_HANDLE_SZ;
- int res = name_to_handle_at(AT_FDCWD, argv[0], handle, &mount_id, 0);
+ int res = name_to_handle_at(AT_FDCWD, "/dev/null", handle, &mount_id, 0);
assert(!res);
free(handle);