am fbd9dcad: Merge "Add a unit test for already-fixed printf -0.0 formatting."

* commit 'fbd9dcadc8e25b22c99596462669017b9b1b4a7c':
  Add a unit test for already-fixed printf -0.0 formatting.
This commit is contained in:
Elliott Hughes 2014-05-14 20:14:36 +00:00 committed by Android Git Automerger
commit f5b79eba6f

View File

@ -400,6 +400,13 @@ TEST(stdio, snprintf_e) {
EXPECT_STREQ("1.500000e+00", buf);
}
TEST(stdio, snprintf_negative_zero_5084292) {
char buf[BUFSIZ];
snprintf(buf, sizeof(buf), "%f", -0.0);
EXPECT_STREQ("-0.000000", buf);
}
TEST(stdio, popen) {
FILE* fp = popen("cat /proc/version", "r");
ASSERT_TRUE(fp != NULL);