Skip to content

Commit 9561114

Browse files
committed
8360178: TestArguments.atojulong gtest has incorrect format string
Backport-of: 878497fb85b9f7d066829b745324028f9f8cdc60
1 parent 2735d22 commit 9561114

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/hotspot/gtest/runtime/test_arguments.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@
2323

2424
#include "precompiled.hpp"
2525
#include "jvm.h"
26-
#include "unittest.hpp"
2726
#include "runtime/arguments.hpp"
2827
#include "utilities/align.hpp"
2928
#include "utilities/globalDefinitions.hpp"
3029

30+
#include "unittest.hpp"
31+
3132
class ArgumentsTest : public ::testing::Test {
3233
public:
3334
static intx parse_xss_inner_annotated(const char* str, jint expected_err, const char* file, int line_number);
@@ -45,7 +46,7 @@ class ArgumentsTest : public ::testing::Test {
4546

4647
TEST_F(ArgumentsTest, atojulong) {
4748
char ullong_max[32];
48-
int ret = jio_snprintf(ullong_max, sizeof(ullong_max), JULONG_FORMAT, ULLONG_MAX);
49+
int ret = jio_snprintf(ullong_max, sizeof(ullong_max), "%llu", ULLONG_MAX);
4950
ASSERT_NE(-1, ret);
5051

5152
julong value;

0 commit comments

Comments
 (0)