OSDN Git Service

* Makefile.in: Add a 'check' target that builds and runs
authorbriand <briand>
Sun, 9 Mar 2008 04:10:10 +0000 (04:10 +0000)
committerbriand <briand>
Sun, 9 Mar 2008 04:10:10 +0000 (04:10 +0000)
commit25b36e14b5b6b2f4e281c399bdffbeccb33cacc8
tree998db8cf894986ab19fb76ed9b55e73d6ac2bf4b
parent2270e0296fce9342b0ff33da1a20ab62a06aad0c
* Makefile.in: Add a 'check' target that builds and runs
testsuite.exe from path-testsuite.o and testsuite.o.
* path.cc: Include testsuite.h.
(struct mnt): Change to a mnt_t typedef and don't define
mount_table when TESTSUITE is defined.
(find2): Don't include when TESTSUITE is defined to avoid warning.
(get_cygdrive0): Ditto.
(get_cygdrive): Ditto.
(read_mounts): Provide empty implementation when TESTSUITE is
defined.
(vconcat): Use the isslash macro.
(unconvert_slashes): New helper to convert to backslashses.
(rel_vconcat): Handle relative paths more gracefully.
(cygpath): Skip a leading "./" sequence.  Avoid double-slashes.
Normalize final output to backslashes and remove redundant path
sequences.
* testsuite.cc: New file implementing testsuite driver.
* testsuite.h: New header implementing harness mount table and
series of tests.
winsup/utils/ChangeLog
winsup/utils/Makefile.in
winsup/utils/path.cc
winsup/utils/testsuite.cc [new file with mode: 0644]
winsup/utils/testsuite.h [new file with mode: 0644]