title: Clion: Gtest TEST_F not working with std::cin
body: <p>I'm trying to send in an input value within the CLion + Gtest system (MacOS 10.14.4), but I get infinite "loading icon" and cannot type in anything into the "Run" window.</p>
  
  <p>I created the tests using a tutorial. Normal tests work flawlessly, only <em>std::cin</em> refuses to work. <em>std::cin</em> works outside the test framework, when just opening a basic project and immediately using it. For this simple example, I only use one file "test.cpp", so nothing else is imported. </p>
  
  <pre class="lang-cpp prettyprint-override"><code>#include &lt;gtest/gtest.h&gt;
  #include &lt;iostream&gt;
  
  using testing::Eq;
  using namespace std;
  
  namespace {
      class basicTest : public testing::Test {
      public:
          basicTest() {
          }
      };
  
  
      TEST_F(basicTest, test1) {
          cout &lt;&lt; "\nWrite a number here: " &lt;&lt; endl;
          int i;
          cin &gt;&gt; i;
          cout &lt;&lt; "You wrote " &lt;&lt; i &lt;&lt; endl;
      }
  }
  
  int main(int argc, char **argv) {
      ::testing::InitGoogleTest(&amp;argc, argv);
      return RUN_ALL_TESTS();
  }
  </code></pre>
  
  <p>Running this produces the following:</p>
  
  <p><img src="https://imgur.com/QmYvt8C.jpg" alt=""></p>
  
  <p>The icon keeps spinning, but there is nowhere for me to write an input. In my original code, the first cout did not even output, so it's just a blank screen until I terminate it with the stop button.</p>
  
  <p>Stopping early produces "Process finished with exit code 137 (interrupted by signal 9: SIGKILL)" but I don't think it's relevant. </p>
  
  <p>I have not tried to use debug mode because it's not compatible with my MacOS version (that's another problem I'll fix eventually).</p>