mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-13 06:59:38 +00:00
8372245: GTest globalDefinitions.format_specifiers cannot run without VM
Reviewed-by: kbarrett, iwalulya
This commit is contained in:
parent
7f518deb2c
commit
d9e256d3b2
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -22,7 +22,6 @@
|
||||
*/
|
||||
|
||||
#include "cppstdlib/type_traits.hpp"
|
||||
#include "memory/resourceArea.hpp"
|
||||
#include "runtime/os.hpp"
|
||||
#include "utilities/align.hpp"
|
||||
#include "utilities/globalDefinitions.hpp"
|
||||
@ -220,10 +219,9 @@ TEST(globalDefinitions, array_size) {
|
||||
|
||||
#define check_format(format, value, expected) \
|
||||
do { \
|
||||
ResourceMark rm; \
|
||||
stringStream out; \
|
||||
out.print((format), (value)); \
|
||||
const char* result = out.as_string(); \
|
||||
const char* result = out.base(); \
|
||||
EXPECT_STREQ((result), (expected)) << "Failed with" \
|
||||
<< " format '" << (format) << "'" \
|
||||
<< " value '" << (value); \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user