<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/testsuite/env.tests, branch mount_point</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=mount_point</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=mount_point'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2023-08-19T08:32:30+00:00</updated>
<entry>
<title>testsuite: skip some tests in native build</title>
<updated>2023-08-19T08:32:30+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-08-19T08:32:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=77aa74d151643ff2ec96156942e004fba19464a5'/>
<id>urn:sha1:77aa74d151643ff2ec96156942e004fba19464a5</id>
<content type='text'>
The testsuite includes some Windows-specific tests.  Exclude these
when running a test on a native build to avoid upsetting the results.
</content>
</entry>
<entry>
<title>win32: better fix for empty environment variables</title>
<updated>2022-05-05T14:14:10+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2022-05-05T14:14:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=3b5042430fc4b82d44e0430f9ecc21a9228d1651'/>
<id>urn:sha1:3b5042430fc4b82d44e0430f9ecc21a9228d1651</id>
<content type='text'>
It appears the CRT and OS each have a copy of the environment.
mingw_putenv() fools the CRT into accepting an empty environment
variable by calling _putenv("V=0") then truncating the new value
by hand.  But _putenv() also updates the OS environment with the
fake 'V=0' value.  Commit 5b48ca53b (win32: pass NULL to spawnve,
not environ) resulted in this fake value being used and hence empty
variables getting the value '0'.

- Add a call to SetEnvironmentVariable() in mingw_putenv() to update
  the OS environment.

- Restore the use of NULL environment pointers in mingw_spawnvp().

- Add a test.

(GitHub issue #250)
</content>
</entry>
</feed>
