Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgor Duda <deo@logos-m.ru>2001-09-15 23:54:04 +0400
committerEgor Duda <deo@logos-m.ru>2001-09-15 23:54:04 +0400
commit615643cb123d295dbb8d0fe7b48689f8c6611f4a (patch)
treeda3c6c37733e406bc379dd78305a956f9f412170 /winsup/testsuite/winsup.api/ltp/sbrk01.c
parent542097acd0d67e9dfd74f565ae74d30a37505934 (diff)
* winsup.api/ltp/sbrk01.c (main): Force output at startup to
make sure that stdio file buffer get allocated. * winsup.api/ltp/stat06.c (high_address_setup): On cygwin, area after sbrk(0) may be available, use 0xffff0000 as "high address". * winsup.api/ltp/symlink01.c: Perform all tests. Mark those tests that don't work on cygwin with '-1'. Close open files so that temporary directory can be deleted on exit. * winsup.api/ltp/vfork01.c: New test.
Diffstat (limited to 'winsup/testsuite/winsup.api/ltp/sbrk01.c')
-rw-r--r--winsup/testsuite/winsup.api/ltp/sbrk01.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/winsup/testsuite/winsup.api/ltp/sbrk01.c b/winsup/testsuite/winsup.api/ltp/sbrk01.c
index a302d5d0d..08fb0a184 100644
--- a/winsup/testsuite/winsup.api/ltp/sbrk01.c
+++ b/winsup/testsuite/winsup.api/ltp/sbrk01.c
@@ -149,6 +149,13 @@ main(int ac, char **av)
***************************************************************/
setup();
+#ifdef __CYGWIN__
+ /* we need to initialize output buffer before first sbrk.
+ otherwise, when memory is freed bu second sbrk, fwrite will
+ fail */
+ tst_resm(TINFO, "Entering test");
+#endif
+
/***************************************************************
* check looping state if -c option given
***************************************************************/
@@ -243,8 +250,6 @@ setup()
/* make a temp dir and cd to it */
tst_tmpdir();
-
-
/* Pause if that option was specified */
TEST_PAUSE;
} /* End setup() */