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:
authorChristopher Faylor <me@cgf.cx>2005-01-10 07:13:39 +0300
committerChristopher Faylor <me@cgf.cx>2005-01-10 07:13:39 +0300
commit76eb61923900be1b6fd4f83bb62f48670fe7293c (patch)
tree627d00526276985411b8cfd0c4ae88e4c368d17b /winsup/testsuite
parenta6888c92d9a775d8ee8169da23c2d81e8df894d1 (diff)
* cygrun.c (main): Fix exit code so that it reflects UNIX style.
* winsup.api/ltp/fork04.c (setup): Accommodate change in putenv declaration.
Diffstat (limited to 'winsup/testsuite')
-rw-r--r--winsup/testsuite/ChangeLog6
-rw-r--r--winsup/testsuite/cygrun.c2
-rw-r--r--winsup/testsuite/winsup.api/ltp/fork04.c2
3 files changed, 9 insertions, 1 deletions
diff --git a/winsup/testsuite/ChangeLog b/winsup/testsuite/ChangeLog
index 181238bba..ed2c5cb31 100644
--- a/winsup/testsuite/ChangeLog
+++ b/winsup/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2005-01-09 Christopher Faylor <cgf@timesys.com>
+
+ * cygrun.c (main): Fix exit code so that it reflects UNIX style.
+ * winsup.api/ltp/fork04.c (setup): Accommodate change in putenv
+ declaration.
+
2004-08-24 Corinna Vinschen <corinna@vinschen.de>
* winsup.api/mmaptest01.c (main): Accomodate 9x memory usage.
diff --git a/winsup/testsuite/cygrun.c b/winsup/testsuite/cygrun.c
index 63d9863f7..60330ca33 100644
--- a/winsup/testsuite/cygrun.c
+++ b/winsup/testsuite/cygrun.c
@@ -63,5 +63,7 @@ main (int argc, char **argv)
CloseHandle (pi.hProcess);
CloseHandle (pi.hThread);
+ if (ec > 0xff)
+ ec >>= 8;
return ec;
}
diff --git a/winsup/testsuite/winsup.api/ltp/fork04.c b/winsup/testsuite/winsup.api/ltp/fork04.c
index 84bac0579..7e8d80f96 100644
--- a/winsup/testsuite/winsup.api/ltp/fork04.c
+++ b/winsup/testsuite/winsup.api/ltp/fork04.c
@@ -165,7 +165,7 @@ setup()
tst_tmpdir();
/* add a variable to the environment */
- putenv("TESTPROG=FRKTCS04");
+ putenv(strdup("TESTPROG=FRKTCS04"));
/* Pause if that option was specified */
TEST_PAUSE;