libhugetlbfs-2.6-fixup-testsuite.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. diff -Nuar --exclude '*.S' --exclude Makefile libhugetlbfs-2.6.orig/tests/run_tests.py libhugetlbfs-2.6/tests/run_tests.py
  2. --- libhugetlbfs-2.6.orig/tests/run_tests.py 2009-08-24 05:56:07.000000000 -0700
  3. +++ libhugetlbfs-2.6/tests/run_tests.py 2009-10-31 00:40:28.520387427 -0700
  4. @@ -56,6 +56,11 @@
  5. local_env["LD_LIBRARY_PATH"] = "../obj%d:obj%d:%s" \
  6. % (bits, bits, local_env.get("LD_LIBRARY_PATH", ""))
  7. local_env["HUGETLB_DEFAULT_PAGE_SIZE"] = repr(pagesize)
  8. + if isinstance(cmd, types.StringType):
  9. + cmd = 'obj%d/%s' % (bits, cmd)
  10. + else:
  11. + s = 'obj%d/%s' % (bits, cmd[0])
  12. + cmd = (s,)+(cmd[1:])
  13. p = subprocess.Popen(cmd, env=local_env, stdout=subprocess.PIPE)
  14. try:
  15. @@ -523,10 +528,11 @@
  16. elfshare_test("linkshare")
  17. elflink_and_share_test("linkhuge")
  18. - # elflink_rw tests
  19. - elflink_rw_test("linkhuge_rw")
  20. - # elflink_rw sharing tests
  21. - elflink_rw_and_share_test("linkhuge_rw")
  22. + if 32 in wordsizes:
  23. + # elflink_rw tests
  24. + elflink_rw_test("linkhuge_rw")
  25. + # elflink_rw sharing tests
  26. + elflink_rw_and_share_test("linkhuge_rw")
  27. # Accounting bug tests
  28. # reset free hpages because sharing will have held some