diff mbox series

[v2,2/3] oeqa/selftest/cases/gcc.py: Increase QEMU RAM to 4GB

Message ID 20250822071227.3304731-2-Harish.Sadineni@windriver.com
State New
Headers show
Series [v2,1/3] gcc: Oe-selftest failure analysis - fix for pr90579.c test failures | expand

Commit Message

Sadineni, Harish Aug. 22, 2025, 7:12 a.m. UTC
From: Harish Sadineni <Harish.Sadineni@windriver.com>

The test pr61599-1.c fails because it requires more than 3GB of RAM.
This change increases the allocated RAM to 4GB to prevent test failures.

Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
---
 meta/lib/oeqa/selftest/cases/gcc.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/lib/oeqa/selftest/cases/gcc.py b/meta/lib/oeqa/selftest/cases/gcc.py
index 1bda29a72b..eb8082db28 100644
--- a/meta/lib/oeqa/selftest/cases/gcc.py
+++ b/meta/lib/oeqa/selftest/cases/gcc.py
@@ -79,7 +79,8 @@  class GccSelfTestBase(OESelftestTestCase, OEPTestResultTestCase):
         bitbake("core-image-minimal")
 
         # wrap the execution with a qemu instance
-        with runqemu("core-image-minimal", runqemuparams = "nographic") as qemu:
+        # Increase RAM to 4GB to accommodate some GCC tests that require more than 3GB 
+        with runqemu("core-image-minimal", runqemuparams = "nographic", qemuparams=" -m 4096") as qemu:
             # validate that SSH is working
             status, _ = qemu.run("uname")
             self.assertEqual(status, 0)