|
|
a9486d |
commit f172a31c56405750114924eba0786999bccc501f
|
|
|
a9486d |
Author: Mark Wielaard <mark@klomp.org>
|
|
|
a9486d |
Date: Mon Nov 2 15:20:54 2020 +0100
|
|
|
a9486d |
|
|
|
a9486d |
tests: Create bogus R/nothing.rpm with cyclic symlink.
|
|
|
a9486d |
|
|
|
a9486d |
We used to try to trigger an error during debuginfod scanning using
|
|
|
a9486d |
a chmod 000 file. But this doesn't always result in an error. Create
|
|
|
a9486d |
a cyclic symlink instead, which always results in a failure to open/read.
|
|
|
a9486d |
|
|
|
a9486d |
Signed-off-by: Mark Wielaard <mark@klomp.org>
|
|
|
a9486d |
|
|
|
a9486d |
diff --git a/tests/ChangeLog b/tests/ChangeLog
|
|
|
a9486d |
index 57fc4c8e..2f8b75c3 100644
|
|
|
a9486d |
--- a/tests/ChangeLog
|
|
|
a9486d |
+++ b/tests/ChangeLog
|
|
|
a9486d |
@@ -1,3 +1,8 @@
|
|
|
a9486d |
+2020-11-02 Mark Wielaard <mark@klomp.org>
|
|
|
a9486d |
+
|
|
|
a9486d |
+ * run-debuginfod-find.sh: Create bogus R/nothing.rpm with cyclic
|
|
|
a9486d |
+ symlink instead of chmod 000.
|
|
|
a9486d |
+
|
|
|
a9486d |
2020-10-31 Mark Wielaard <mark@klomp.org>
|
|
|
a9486d |
|
|
|
a9486d |
* dwfl-proc-attach.c (dlopen): New external function override.
|
|
|
a9486d |
diff --git a/tests/run-debuginfod-find.sh b/tests/run-debuginfod-find.sh
|
|
|
a9486d |
index 48dbc7d4..5af45667 100755
|
|
|
a9486d |
--- a/tests/run-debuginfod-find.sh
|
|
|
a9486d |
+++ b/tests/run-debuginfod-find.sh
|
|
|
a9486d |
@@ -95,9 +95,10 @@ wait_ready()
|
|
|
a9486d |
fi
|
|
|
a9486d |
}
|
|
|
a9486d |
|
|
|
a9486d |
-# create a 000 empty .rpm file to evoke a metric-visible error
|
|
|
a9486d |
-touch R/nothing.rpm
|
|
|
a9486d |
-chmod 000 R/nothing.rpm
|
|
|
a9486d |
+# create a bogus .rpm file to evoke a metric-visible error
|
|
|
a9486d |
+# Use a cyclic symlink instead of chmod 000 to make sure even root
|
|
|
a9486d |
+# would see an error (running the testsuite under root is NOT encouraged).
|
|
|
a9486d |
+ln -s R/nothing.rpm R/nothing.rpm
|
|
|
a9486d |
|
|
|
a9486d |
env LD_LIBRARY_PATH=$ldpath DEBUGINFOD_URLS= ${abs_builddir}/../debuginfod/debuginfod $VERBOSE -F -R -d $DB -p $PORT1 -t0 -g0 --fdcache-fds 1 --fdcache-mbs 2 -Z .tar.xz -Z .tar.bz2=bzcat -v R F Z L > vlog4 2>&1 &
|
|
|
a9486d |
PID1=$!
|