Port most of libdispatch tests to Linux (31 compile; 21 pass). #15
+304
−8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Made an initial sweep through the test suite to resolve
the easy compilation issues.
Summary of changes:
(a) Guard mach specific code with #ifdef APPLE
(b) Changes to tests/Makefile.am to preserve
information from configure to guide test selection,
compilation, and execution.
(c) Map sysctlbyname calls to sysconf
(d) Simulate mach_absolute_time APIs
(e) Guard code using F_NOCACHE and F_GLOBAL_NOCACHE
(f) On Linux, simplify bsdtestharness.c to not use
libdispatch to execute the test cases (some of the
needed libdispatch functionality is not yet working).
To track progress, we broke the TESTS list in tests/Makefile.am
into UNPORTED_TESTS, PORTED_TESTS_FAILED, PORTED_TESTS_PASSED.
TESTS is defined as the union of PORTED_TESTS_PASSED and
PORTED_TESTS_FAILED.
If the automake testing harness is only being used on Linux,
it would be nice to merge this change back to coordinate progress.
If you use this test harness on OS X too, we can do something
different like tracking progress in a side file instead.