diff --git a/slurm.changes b/slurm.changes index 3bda40c..1f5fef7 100644 --- a/slurm.changes +++ b/slurm.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 9 08:35:38 UTC 2025 - Egbert Eich + +- Fix testsuite: + Cater for erroneous: `#include ` + statements. + ------------------------------------------------------------------- Mon Jan 6 12:40:31 UTC 2025 - Egbert Eich diff --git a/slurm.spec b/slurm.spec index d0e1eda..83f6bc7 100644 --- a/slurm.spec +++ b/slurm.spec @@ -852,7 +852,12 @@ filelist="$(grep '#include' *.c | sed -ne 's/.*:#include *\"\([^\"]*\)\".*/\1/p' while true; do oldfilelist=$filelist; tlist="" for i in $filelist; do - nlist=" $(grep '#include' ../../$i | sed -ne 's/#include *\"\([^\"]*\)\".*/\1/p')" + nlist=" $(grep '#include' ../../$i | sed -ne 's@#include *\"\([^\"]*\)\".*@\1@p')" + tlist+=" $(for j in $nlist; do [ -e ../../$j ] && echo $j || true; done)" + done + # Cater for erroneous: `#include ` + for i in $filelist; do + nlist=" $(grep '#include' ../../$i | sed -ne 's@#include *<\(src/\)\([^>]*\)>.*@\1\2@p')" tlist+=" $(for j in $nlist; do [ -e ../../$j ] && echo $j || true; done)" done filelist="$(for i in $filelist $tlist; do echo $i; done | sort | uniq)"