From 9c356f2909d829ef3315e450b6b747a6f16cf771 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 3 Dec 2014 14:01:43 +0000 Subject: 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. --- test/backupstorefix/testbackupstorefix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/backupstorefix/testbackupstorefix.cpp') 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; } -- cgit v1.2.3