diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-06-02 22:02:30 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-06-02 22:02:30 +0000 |
commit | bfb492d6c8d99562ce92f1e4152d5a7b36f5c1fa (patch) | |
tree | f205bf7a16d40ca53d15f1f4f3eee0a0216c8816 /llvm/utils/unittest/googletest/include/gtest/internal/gtest-death-test-internal.h | |
parent | 78b6a290cb95a9148ef0d02cd94b2742cc13474d (diff) | |
download | bcm5719-llvm-bfb492d6c8d99562ce92f1e4152d5a7b36f5c1fa.tar.gz bcm5719-llvm-bfb492d6c8d99562ce92f1e4152d5a7b36f5c1fa.zip |
Merge gtest-1.5.0.
llvm-svn: 105354
Diffstat (limited to 'llvm/utils/unittest/googletest/include/gtest/internal/gtest-death-test-internal.h')
-rw-r--r-- | llvm/utils/unittest/googletest/include/gtest/internal/gtest-death-test-internal.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/llvm/utils/unittest/googletest/include/gtest/internal/gtest-death-test-internal.h b/llvm/utils/unittest/googletest/include/gtest/internal/gtest-death-test-internal.h index 5aba1a0d681..e4330848d4e 100644 --- a/llvm/utils/unittest/googletest/include/gtest/internal/gtest-death-test-internal.h +++ b/llvm/utils/unittest/googletest/include/gtest/internal/gtest-death-test-internal.h @@ -64,7 +64,7 @@ const char kInternalRunDeathTestFlag[] = "internal_run_death_test"; // by wait(2) // exit code: The integer code passed to exit(3), _exit(2), or // returned from main() -class DeathTest { +class GTEST_API_ DeathTest { public: // Create returns false if there was an error determining the // appropriate action to take for the current death test; for example, @@ -147,7 +147,7 @@ class DefaultDeathTestFactory : public DeathTestFactory { // Returns true if exit_status describes a process that was terminated // by a signal, or exited normally with a nonzero exit code. -bool ExitedUnsuccessfully(int exit_status); +GTEST_API_ bool ExitedUnsuccessfully(int exit_status); // This macro is for implementing ASSERT_DEATH*, EXPECT_DEATH*, // ASSERT_EXIT*, and EXPECT_EXIT*. @@ -189,11 +189,12 @@ bool ExitedUnsuccessfully(int exit_status); // RUN_ALL_TESTS was called. class InternalRunDeathTestFlag { public: - InternalRunDeathTestFlag(const String& file, - int line, - int index, - int write_fd) - : file_(file), line_(line), index_(index), write_fd_(write_fd) {} + InternalRunDeathTestFlag(const String& a_file, + int a_line, + int an_index, + int a_write_fd) + : file_(a_file), line_(a_line), index_(an_index), + write_fd_(a_write_fd) {} ~InternalRunDeathTestFlag() { if (write_fd_ >= 0) |