summaryrefslogtreecommitdiff
path: root/indra/llvfs/tests/lldir_test.cpp
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2010-11-19 16:13:51 -0800
committerLeyla Farazha <leyla@lindenlab.com>2010-11-19 16:13:51 -0800
commit7a74f64d5eda050da0d966b0fa3e76b4b54888fa (patch)
treeb3cee2fdcf01e11cf13dca58f56c3b1d0e804739 /indra/llvfs/tests/lldir_test.cpp
parentb48dad17260a7f5fbfc4d0548b4386d62efc2e5e (diff)
parent9d3174c0386e6eefba1949075971ce7f75571394 (diff)
Merge
Diffstat (limited to 'indra/llvfs/tests/lldir_test.cpp')
-rw-r--r--indra/llvfs/tests/lldir_test.cpp4
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;
}