0003-disable-profil-on-uClibc.patch 794 B

123456789101112131415161718192021222324252627
  1. uClibc-ng has no profil() support
  2. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
  3. diff -Nur ltp-full-20160126.orig/testcases/kernel/syscalls/profil/profil01.c ltp-full-20160126/testcases/kernel/syscalls/profil/profil01.c
  4. --- ltp-full-20160126.orig/testcases/kernel/syscalls/profil/profil01.c 2016-01-26 13:35:25.000000000 +0100
  5. +++ ltp-full-20160126/testcases/kernel/syscalls/profil/profil01.c 2016-03-05 01:00:07.328962536 +0100
  6. @@ -37,6 +37,9 @@
  7. #define PROFIL_BUFLEN (32*1024)
  8. char *TCID = "profil01";
  9. +
  10. +#if !defined(__UCLIBC__)
  11. +
  12. int TST_TOTAL = 1;
  13. static volatile sig_atomic_t profil_done;
  14. @@ -124,3 +127,9 @@
  15. tst_exit();
  16. }
  17. +#else /* systems that dont support profil */
  18. +int main(void)
  19. +{
  20. + tst_brkm(TCONF, NULL, "system doesn't have profil support");
  21. +}
  22. +#endif