mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-28 00:07:28 +00:00
Bug 590429 Fix __VA_ARGS__ in macros of TestSTSParser.cpp to make it compile with Sun Studio r=sstamm a=test-fix
This commit is contained in:
parent
5e0a33b6d2
commit
cdf3e1d4f5
@ -45,27 +45,27 @@
|
||||
#include "nsIStrictTransportSecurityService.h"
|
||||
#include "nsIPermissionManager.h"
|
||||
|
||||
#define EXPECT_SUCCESS(rv,msg, ...) \
|
||||
#define EXPECT_SUCCESS(rv, ...) \
|
||||
PR_BEGIN_MACRO \
|
||||
if (NS_FAILED(rv)) { \
|
||||
fail(msg,##__VA_ARGS__); \
|
||||
fail(__VA_ARGS__); \
|
||||
return PR_FALSE; \
|
||||
} \
|
||||
PR_END_MACRO
|
||||
|
||||
|
||||
#define EXPECT_FAILURE(rv,msg, ...) \
|
||||
#define EXPECT_FAILURE(rv, ...) \
|
||||
PR_BEGIN_MACRO \
|
||||
if (NS_SUCCEEDED(rv)) { \
|
||||
fail(msg,##__VA_ARGS__); \
|
||||
fail(__VA_ARGS__); \
|
||||
return PR_FALSE; \
|
||||
} \
|
||||
PR_END_MACRO
|
||||
|
||||
#define REQUIRE_EQUAL(a,b,msg, ...) \
|
||||
#define REQUIRE_EQUAL(a, b, ...) \
|
||||
PR_BEGIN_MACRO \
|
||||
if (a != b) { \
|
||||
fail(msg, ##__VA_ARGS__); \
|
||||
fail(__VA_ARGS__); \
|
||||
return PR_FALSE; \
|
||||
} \
|
||||
PR_END_MACRO
|
||||
|
Loading…
x
Reference in New Issue
Block a user