forked from mirrors/gecko-dev
Bug 1758017 - Disable MOZ_FORMAT_PRINTF in TestPrintf on Android. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D140272
This commit is contained in:
parent
dc3fb314e4
commit
1cd4e4fcce
1 changed files with 6 additions and 1 deletions
|
|
@ -65,7 +65,12 @@ static void TestPrintfTargetPrint() {
|
||||||
checker.print("test string");
|
checker.print("test string");
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool MOZ_FORMAT_PRINTF(5, 6)
|
// As of clang 14, __attribute__((printf)) doesn't allow %n on Android targets,
|
||||||
|
// which is used in this test.
|
||||||
|
static bool
|
||||||
|
#ifndef __ANDROID__
|
||||||
|
MOZ_FORMAT_PRINTF(5, 6)
|
||||||
|
#endif
|
||||||
check_print(const char* file, int line,
|
check_print(const char* file, int line,
|
||||||
bool (*cmp)(const char* a, const char* b), const char* expect,
|
bool (*cmp)(const char* a, const char* b), const char* expect,
|
||||||
const char* fmt, ...) {
|
const char* fmt, ...) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue