[compiler-rt] r251372 - [msan] Yet another attempt to fix process_vm_readv test.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 26 17:11:28 PDT 2015
Author: eugenis
Date: Mon Oct 26 19:11:28 2015
New Revision: 251372
URL: http://llvm.org/viewvc/llvm-project?rev=251372&view=rev
Log:
[msan] Yet another attempt to fix process_vm_readv test.
Modified:
compiler-rt/trunk/test/msan/Linux/process_vm_readv.cc
Modified: compiler-rt/trunk/test/msan/Linux/process_vm_readv.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/msan/Linux/process_vm_readv.cc?rev=251372&r1=251371&r2=251372&view=diff
==============================================================================
--- compiler-rt/trunk/test/msan/Linux/process_vm_readv.cc (original)
+++ compiler-rt/trunk/test/msan/Linux/process_vm_readv.cc Mon Oct 26 19:11:28 2015
@@ -10,14 +10,14 @@
#include <sys/uio.h>
#include <unistd.h>
-typedef ssize_t (*process_vm_readv_fn)(pid_t, const iovec *, unsigned long,
+typedef ssize_t (*process_vm_readwritev_fn)(pid_t, const iovec *, unsigned long,
const iovec *, unsigned long,
unsigned long);
int main(void) {
// This requires glibc 2.15.
- process_vm_readv_fn libc_process_vm_readv =
- (process_vm_readv_fn)dlsym(RTLD_NEXT, "process_vm_readv");
+ process_vm_readwritev_fn libc_process_vm_readv =
+ (process_vm_readwritev_fn)dlsym(RTLD_NEXT, "process_vm_readv");
if (!libc_process_vm_readv) {
// Exit with success, emulating the expected output.
#ifdef POSITIVE
@@ -30,6 +30,11 @@ int main(void) {
#endif
}
+ process_vm_readwritev_fn process_vm_readv =
+ (process_vm_readwritev_fn)dlsym(RTLD_DEFAULT, "process_vm_readv");
+ process_vm_readwritev_fn process_vm_writev =
+ (process_vm_readwritev_fn)dlsym(RTLD_DEFAULT, "process_vm_writev");
+
char a[100];
memset(a, 0xab, 100);
More information about the llvm-commits
mailing list