Rename test

This commit is contained in:
Smertig 2021-05-10 13:41:45 +03:00 committed by The Phantom Derpstorm
parent 05235646ef
commit bb5f60e138
2 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@
#if SOL_TESTS_SIZEOF_VOID_P == 4 #if SOL_TESTS_SIZEOF_VOID_P == 4
inline namespace sol2_regression_test_XXXX { inline namespace sol2_regression_test_1192 {
struct Test { struct Test {
std::uint64_t dummy; std::uint64_t dummy;
}; };
@ -10,9 +10,9 @@ inline namespace sol2_regression_test_XXXX {
struct alignas(1024) Test2 { struct alignas(1024) Test2 {
char dummy[1024]; char dummy[1024];
}; };
} // namespace sol2_regression_test_XXXX } // namespace sol2_regression_test_1192
unsigned int regression_XXXX() { unsigned int regression_1192() {
sol::state lua; sol::state lua;
static_assert(sizeof(Test) == 8); static_assert(sizeof(Test) == 8);
@ -20,7 +20,7 @@ unsigned int regression_XXXX() {
static_assert(sizeof(Test*) == 4); static_assert(sizeof(Test*) == 4);
static_assert(alignof(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 /// Note: may not panic depending on alignment of local variable `alignment_shim` in sol::detail::aligned_space_for
lua["test"] = Test {}; lua["test"] = Test {};
@ -33,7 +33,7 @@ unsigned int regression_XXXX() {
#else #else
unsigned int regression_XXXX() { unsigned int regression_1192() {
return 0; return 0;
} }

View File

@ -10,10 +10,10 @@ extern unsigned int regression_1087();
extern unsigned int regression_1095(); extern unsigned int regression_1095();
extern unsigned int regression_1096(); extern unsigned int regression_1096();
extern unsigned int regression_1149(); extern unsigned int regression_1149();
extern unsigned int regression_XXXX(); extern unsigned int regression_1192();
static f_ptr* const regression_tests_regressions[] static f_ptr* const regression_tests_regressions[]
= { &regression_1008, &regression_1000, &regression_1067, &regression_1072, &regression_1087, &regression_1095, &regression_1096, &regression_1149, &regression_XXXX }; = { &regression_1008, &regression_1000, &regression_1067, &regression_1072, &regression_1087, &regression_1095, &regression_1096, &regression_1149, &regression_1192 };
static const int regression_tests_sizeof_regressions = sizeof(regression_tests_regressions) / sizeof(regression_tests_regressions[0]); static const int regression_tests_sizeof_regressions = sizeof(regression_tests_regressions) / sizeof(regression_tests_regressions[0]);
int trampoline(f_ptr* f) { int trampoline(f_ptr* f) {