summaryrefslogtreecommitdiffstats
path: root/winsup/testsuite/winsup.api/ltp/sbrk01.c
diff options
context:
space:
mode:
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() */