Skip to content

Port most of libdispatch tests to Linux (31 compile; 21 pass). #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 18, 2015

Conversation

dgrove-oss
Copy link
Contributor

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.

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 harnesss on OS X too, we can do something
different like tracking progress in a side file instead.
to implement the handful of atomic operations used in test cases.
MadCoder added a commit that referenced this pull request Dec 18, 2015
Port most of libdispatch tests to Linux (31 compile; 21 pass).
@MadCoder MadCoder merged commit 35eb408 into swiftlang:master Dec 18, 2015
@dgrove-oss dgrove-oss deleted the fixtests-cp1 branch January 11, 2016 16:58
das pushed a commit that referenced this pull request Jun 14, 2016
Port most of libdispatch tests to Linux (31 compile; 21 pass).

Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants