[compiler-rt] r354402 - [msan] Fix name_to_handle_at test on overlayfs.

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 19 15:41:42 PST 2019


Author: eugenis
Date: Tue Feb 19 15:41:42 2019
New Revision: 354402

URL: http://llvm.org/viewvc/llvm-project?rev=354402&view=rev
Log:
[msan] Fix name_to_handle_at test on overlayfs.

Udev supports name_to_handle_at. Use /dev/null instead of /bin/cat.

Modified:
    compiler-rt/trunk/test/msan/Linux/name_to_handle_at.cc

Modified: compiler-rt/trunk/test/msan/Linux/name_to_handle_at.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/msan/Linux/name_to_handle_at.cc?rev=354402&r1=354401&r2=354402&view=diff
==============================================================================
--- compiler-rt/trunk/test/msan/Linux/name_to_handle_at.cc (original)
+++ compiler-rt/trunk/test/msan/Linux/name_to_handle_at.cc Tue Feb 19 15:41:42 2019
@@ -14,7 +14,7 @@ int main(void) {
   handle->handle_bytes = MAX_HANDLE_SZ;
 
   int mount_id;
-  int res = name_to_handle_at(AT_FDCWD, "/bin/cat", handle, &mount_id, 0);
+  int res = name_to_handle_at(AT_FDCWD, "/dev/null", handle, &mount_id, 0);
   assert(!res);
   __msan_check_mem_is_initialized(&mount_id, sizeof(mount_id));
   __msan_check_mem_is_initialized(&handle->handle_bytes,




More information about the llvm-commits mailing list