diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-12-03 14:01:43 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-12-03 14:01:43 +0000 |
commit | 9c356f2909d829ef3315e450b6b747a6f16cf771 (patch) | |
tree | 2c6614e98f020dc4a284ba71d6bc8642a7d78be1 /test/backupstorefix | |
parent | 4fbcb015379a107a36763c1bed03b08aea64d310 (diff) |
Fix test failures in testbackupstorefix on FreeBSD 10.
It seems that sending a NULL pointer to an ostringstream on FreeBSD gives
different results depending on the type of the pointer. It could write 0
or 0x0, and if they don't match, tests will fail.
Diffstat (limited to 'test/backupstorefix')
-rw-r--r-- | test/backupstorefix/testbackupstorefix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/backupstorefix/testbackupstorefix.cpp b/test/backupstorefix/testbackupstorefix.cpp index 048251c2..a4884000 100644 --- a/test/backupstorefix/testbackupstorefix.cpp +++ b/test/backupstorefix/testbackupstorefix.cpp @@ -188,7 +188,7 @@ bool check_dir(BackupStoreDirectory &dir, dir_en_check *ck) ++ck; } - TEST_EQUAL_OR(en, 0, ok = false); + TEST_EQUAL_OR((void *)NULL, (void *)en, ok = false); TEST_EQUAL_OR(ck->name, -1, ok = false); return ok; } |