Skip to content

Commit 878497f

Browse files
author
Kim Barrett
committed
8360178: TestArguments.atojulong gtest has incorrect format string
Reviewed-by: dholmes
1 parent f2ef809 commit 878497f

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
@@ -22,14 +22,15 @@
2222
*/
2323

2424
#include "jvm.h"
25-
#include "unittest.hpp"
2625
#include "runtime/arguments.hpp"
2726
#include "runtime/flags/jvmFlag.hpp"
2827
#include "utilities/align.hpp"
2928
#include "utilities/globalDefinitions.hpp"
3029

3130
#include <errno.h>
3231

32+
#include "unittest.hpp"
33+
3334
class ArgumentsTest : public ::testing::Test {
3435
public:
3536
static intx parse_xss_inner_annotated(const char* str, jint expected_err, const char* file, int line_number);
@@ -57,7 +58,7 @@ class ArgumentsTest : public ::testing::Test {
5758

5859
TEST_F(ArgumentsTest, atojulong) {
5960
char ullong_max[32];
60-
int ret = jio_snprintf(ullong_max, sizeof(ullong_max), JULONG_FORMAT, ULLONG_MAX);
61+
int ret = jio_snprintf(ullong_max, sizeof(ullong_max), "%llu", ULLONG_MAX);
6162
ASSERT_NE(-1, ret);
6263

6364
julong value;

0 commit comments

Comments
 (0)