diff --git a/tests/rm/rm-readdir-fail.sh b/tests/rm/rm-readdir-fail.sh index 75fa339db..8d74aaefd 100755 --- a/tests/rm/rm-readdir-fail.sh +++ b/tests/rm/rm-readdir-fail.sh @@ -55,6 +55,8 @@ struct dirent *readdir (DIR *dirp) return NULL; } + if ((long) (d) % _Alignof (struct dirent) != 0) + abort (); /* Flag that LD_PRELOAD and above functions work. */ static int count = 1; if (count == 1)