https://bugs.kde.org/show_bug.cgi?id=431157

--- Comment #2 from Florian Weimer <fwei...@redhat.com> ---
I think this does not work because the calling convention for “sc” and “scv 0”
are different.

The glibc test case misc/test-errno-linux is a good way to exercise syscall
errors.  Here's how you can run it under an valgrind binary which is found via
$PATH.  Use bash -x to see the valgrind invocation if you have to tweak the
invocation.  The --direct option tells the test harness to skip the outer fork.

git clone --depth 1 git://sourceware.org/git/glibc.git git
mkdir build
cd build
# Build glibc. The --prefix=/usr is important.
../git/configure --prefix=/usr
make -j`nproc` -O
# Build the test and run it without valgrind.
make t=misc/test-errno-linux test
# Run the built test under valgrind.
bash testrun.sh --tool=valgrind misc/test-errno-linux --direct

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to