diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2010-11-19 17:00:27 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2010-11-19 17:00:27 -0500 |
commit | 8b079f38c617fd95a368fe2791cb15f90d898a59 (patch) | |
tree | f9df45c01ae8a1d269a44aad309ea503e5cf60dd | |
parent | b6edd74775e07ce392b0a1785cfc61338c890dad (diff) | |
parent | b9d9a84f74ff0c2ef99e4300041a0fec22e4c710 (diff) |
Automated merge with https://bitbucket.org/mani_linden/viewer-development
-rw-r--r-- | indra/llvfs/tests/lldir_test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llvfs/tests/lldir_test.cpp b/indra/llvfs/tests/lldir_test.cpp index 83ccb277b3..8788bd63e8 100644 --- a/indra/llvfs/tests/lldir_test.cpp +++ b/indra/llvfs/tests/lldir_test.cpp @@ -263,7 +263,9 @@ namespace tut std::string path = dir + delim + file; LLFILE* handle = LLFile::fopen( path, "w" ); ensure("failed to open test file '"+path+"'", handle != NULL ); - ensure("failed to write to test file '"+path+"'", !fputs("test file", handle) ); + // Harbison & Steele, 4th ed., p. 366: "If an error occurs, fputs + // returns EOF; otherwise, it returns some other, nonnegative value." + ensure("failed to write to test file '"+path+"'", fputs("test file", handle) >= 0); fclose(handle); return path; } |