From bb5f60e138191bb5838ffbd9d458701ff3b05552 Mon Sep 17 00:00:00 2001 From: Smertig Date: Mon, 10 May 2021 13:41:45 +0300 Subject: [PATCH] Rename test --- ....cpp => 1192 - incorrect alignment calculation.cpp} | 10 +++++----- tests/regression_tests/simple/source/main.cpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) rename tests/regression_tests/simple/source/{XXXX - incorrect alignment calculation.cpp => 1192 - incorrect alignment calculation.cpp} (80%) diff --git a/tests/regression_tests/simple/source/XXXX - incorrect alignment calculation.cpp b/tests/regression_tests/simple/source/1192 - incorrect alignment calculation.cpp similarity index 80% rename from tests/regression_tests/simple/source/XXXX - incorrect alignment calculation.cpp rename to tests/regression_tests/simple/source/1192 - incorrect alignment calculation.cpp index 3c8f72b1..9def8c17 100644 --- a/tests/regression_tests/simple/source/XXXX - incorrect alignment calculation.cpp +++ b/tests/regression_tests/simple/source/1192 - incorrect alignment calculation.cpp @@ -2,7 +2,7 @@ #if SOL_TESTS_SIZEOF_VOID_P == 4 -inline namespace sol2_regression_test_XXXX { +inline namespace sol2_regression_test_1192 { struct Test { std::uint64_t dummy; }; @@ -10,9 +10,9 @@ inline namespace sol2_regression_test_XXXX { struct alignas(1024) Test2 { char dummy[1024]; }; -} // namespace sol2_regression_test_XXXX +} // namespace sol2_regression_test_1192 -unsigned int regression_XXXX() { +unsigned int regression_1192() { sol::state lua; static_assert(sizeof(Test) == 8); @@ -20,7 +20,7 @@ unsigned int regression_XXXX() { static_assert(sizeof(Test*) == 4); static_assert(alignof(Test*) == 4); - /// [sol2] An error occurred and panic has been invoked: aligned allocation of userdata block (data section) for 'sol2_regression_test_XXXX::Test' failed + /// [sol2] An error occurred and panic has been invoked: aligned allocation of userdata block (data section) for 'sol2_regression_test_1192::Test' failed /// Note: may not panic depending on alignment of local variable `alignment_shim` in sol::detail::aligned_space_for lua["test"] = Test {}; @@ -33,7 +33,7 @@ unsigned int regression_XXXX() { #else -unsigned int regression_XXXX() { +unsigned int regression_1192() { return 0; } diff --git a/tests/regression_tests/simple/source/main.cpp b/tests/regression_tests/simple/source/main.cpp index aa59eba3..a346d9db 100644 --- a/tests/regression_tests/simple/source/main.cpp +++ b/tests/regression_tests/simple/source/main.cpp @@ -10,10 +10,10 @@ extern unsigned int regression_1087(); extern unsigned int regression_1095(); extern unsigned int regression_1096(); extern unsigned int regression_1149(); -extern unsigned int regression_XXXX(); +extern unsigned int regression_1192(); static f_ptr* const regression_tests_regressions[] - = { ®ression_1008, ®ression_1000, ®ression_1067, ®ression_1072, ®ression_1087, ®ression_1095, ®ression_1096, ®ression_1149, ®ression_XXXX }; + = { ®ression_1008, ®ression_1000, ®ression_1067, ®ression_1072, ®ression_1087, ®ression_1095, ®ression_1096, ®ression_1149, ®ression_1192 }; static const int regression_tests_sizeof_regressions = sizeof(regression_tests_regressions) / sizeof(regression_tests_regressions[0]); int trampoline(f_ptr* f) {