Skip to content

Commit

Permalink
update r920
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Sep 9, 2015
1 parent 14dd932 commit 5f97a15
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = iutest
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 1.12.99.2
PROJECT_NUMBER = 1.12.99.3

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
1 change: 1 addition & 0 deletions include/impl/iutest_port.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ IUTEST_IPP_INLINE bool SetEnvironmentVariable(const char* name, const char* valu

IUTEST_IPP_INLINE bool GetEnvironmentVariable(const char* name, char* buf, size_t size)
{
if( buf == NULL ) return false;
#if defined(IUTEST_OS_WINDOWS) && !defined(IUTEST_OS_WINDOWS_MOBILE) && !defined(IUTEST_OS_WINDOWS_PHONE) && !defined(IUTEST_OS_WINDOWS_RT)
const DWORD ret = ::GetEnvironmentVariableA(name, buf, static_cast<DWORD>(size));
if( ret == 0 )
Expand Down
4 changes: 2 additions & 2 deletions include/iutest_ver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@

//======================================================================
// define
#define IUTEST_VER 0x01129902u //!< iutest version 1.12.99.2
#define IUTEST_VER 0x01129903u //!< iutest version 1.12.99.3
#define IUTEST_MAJORVER 0x01u //!< Major Version
#define IUTEST_MINORVER 0x12u //!< Minor Version
#define IUTEST_BUILD 0x99u //!< Build
#define IUTEST_REVISION 0x02u //!< Revision
#define IUTEST_REVISION 0x03u //!< Revision

/**
* @mainpage
Expand Down
7 changes: 7 additions & 0 deletions test/unit_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ IUTEST(UnitTest, FileLocqtion)
, ::iutest::detail::FormatFileLocation("main.cpp", -1) );
}

IUTEST(UnitTest, GetEnvironmentVariable)
{
char buf[2];
IUTEST_EXPECT_FALSE( ::iutest::detail::GetEnvironmentVariable("PATH", buf, sizeof(buf)) );
IUTEST_EXPECT_FALSE( ::iutest::detail::GetEnvironmentVariable("PATH", NULL, 0) );
}


#ifdef UNICODE
int wmain(int argc, wchar_t* argv[])
Expand Down

0 comments on commit 5f97a15

Please sign in to comment.