diff options
author | Elliott Hughes <enh@google.com> | 2013-10-02 16:59:05 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-10-02 16:59:05 -0700 |
commit | 5b9310e502003e584bcb3a028ca3db7aa4d3f01b (patch) | |
tree | 5747ee180ec0d5c352758125487a2815d4eb3716 /tests/fortify_test.cpp | |
parent | f741e1c2ed27f153e92a2a36c9db3b189f9a6388 (diff) | |
download | android_bionic-5b9310e502003e584bcb3a028ca3db7aa4d3f01b.tar.gz android_bionic-5b9310e502003e584bcb3a028ca3db7aa4d3f01b.tar.bz2 android_bionic-5b9310e502003e584bcb3a028ca3db7aa4d3f01b.zip |
Fix 32-bit issues in tests, and add a trivial test for the FD_* macros.
Change-Id: Ia3f21ce1f0ed9236527fe44d36ccb7de6bf63113
Diffstat (limited to 'tests/fortify_test.cpp')
-rw-r--r-- | tests/fortify_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fortify_test.cpp b/tests/fortify_test.cpp index 3a1bb93a3..abe2cae5a 100644 --- a/tests/fortify_test.cpp +++ b/tests/fortify_test.cpp @@ -350,7 +350,7 @@ TEST(DEATHTEST, strlen_fortified) { ::testing::FLAGS_gtest_death_test_style = "threadsafe"; char buf[10]; memcpy(buf, "0123456789", sizeof(buf)); - ASSERT_EXIT(printf("%d", strlen(buf)), testing::KilledBySignal(SIGABRT), ""); + ASSERT_EXIT(printf("%zd", strlen(buf)), testing::KilledBySignal(SIGABRT), ""); } TEST(DEATHTEST, strchr_fortified) { |