13 #include <gtest/gtest.h> 16 #include "../../include/ecl/devices/shared_file.hpp" 41 for (
unsigned int i = 0; i < 3; ++i ) {
42 n = file.
write(
"Thread\n",7);
59 TEST(SharedFileTests,allEggsInTheBasket) {
64 for (
unsigned int i = 0; i < 3; ++i ) {
65 n = file.
write(
"Main\n",5);
76 int main(
int argc,
char **argv) {
78 testing::InitGoogleTest(&argc,argv);
79 return RUN_ALL_TESTS();
Embedded control libraries.
TEST(SharedFileTests, allEggsInTheBasket)
Frameworks created for the unit tests.
int main(int argc, char **argv)
Multi-instance (also thread-safe) output file device.
bool flush() ecl_debug_throw_decl(StandardException)
Flush the internal buffer.
long write(const char &c) ecl_debug_throw_decl(StandardException)
Write a character to the buffer.
Opens a new object (deletes existing objects).