summaryrefslogtreecommitdiff
path: root/tests/stdio_test.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-07-31 17:20:18 -0700
committerElliott Hughes <enh@google.com>2017-07-31 17:20:18 -0700
commitb15feb70240a4fdf88ae1a7da85e6f87523e00ed (patch)
tree5c6e069440a88415b13e1408cf2236fafdc46986 /tests/stdio_test.cpp
parent4dd33f92d82b9fb77152bfc68f312d2fa5710a28 (diff)
Clean up some <stdio.h> constants.
And actually test an assertion rather than just state it in a comment. Bug: N/A Test: ran tests Change-Id: I07699483aca4aac4e089d8b99123cb5bde9b3c63
Diffstat (limited to 'tests/stdio_test.cpp')
-rw-r--r--tests/stdio_test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/stdio_test.cpp b/tests/stdio_test.cpp
index dac7056e2..1bb97a361 100644
--- a/tests/stdio_test.cpp
+++ b/tests/stdio_test.cpp
@@ -1918,3 +1918,8 @@ TEST(STDIO_TEST, freopen_append_mode_and_ftell) {
ASSERT_EQ(0, fclose(fp));
AssertFileIs(tf.filename, "0123456789xxx");
}
+
+TEST(STDIO_TEST, constants) {
+ ASSERT_LE(FILENAME_MAX, PATH_MAX);
+ ASSERT_EQ(L_tmpnam, PATH_MAX);
+}