)]}'
{
  "commit": "d2cc16cd7fc96367132332cf26348be18435a851",
  "tree": "a39363f6e6a6a98a4a6f471923ea0b040f6368e1",
  "parents": [
    "ba5838a98fbdaf9f8ae1b929b87eee49c974e49c"
  ],
  "author": {
    "name": "Jan Vrany",
    "email": "jan.vrany@labware.com",
    "time": "Mon Jan 19 08:58:41 2026 +0000"
  },
  "committer": {
    "name": "Jan Vrany",
    "email": "jan.vrany@labware.com",
    "time": "Mon Jan 19 08:58:41 2026 +0000"
  },
  "message": "gdb/testsuite: fix FAILs in fileio.exp\n\nI\u0027m experiencing intermittent FAILs in fileio.exp when running on (my)\nCI:\n\n    FAIL: gdb.base/fileio.exp: Open a file\n    FAIL: gdb.base/fileio.exp: Creating already existing file returns EEXIST\n    FAIL: gdb.base/fileio.exp: Open for write but no write permission returns EACCES\n    FAIL: gdb.base/fileio.exp: Writing to a file\n    ...\n\nThe problem turned out to be the way the OUTDIR gets defined in fileio.c.\nThe path is passed down \"naked\" and turned into string by STRINGIFY macro.\n\nHowever, if the path happens to contain name of unrelated pre-existing\nC macro, this macro gets expanded during the \"stringification\", resulting\nin (likely) different path than used in fileio.exp and therefore causing\nfailures.\n\nFor example, if the GDB is compiled and tested in directory\n\n    /var/lib/jenkins/workspace/binutils-gdb/build/x86_64-linux-gnu\n\nthen fileio.c is compiled with\n\n   -DOUTDIR_\u003d/var/lib/jenkins/workspace/binutils-gdb/build/x86_64-linux-gnu/gdb/testsuite/outputs/gdb.base/fileio\n\nBut because there\u0027s also C macro named \"linux\" defined to 1, the resulting\nOUTDIR is actually:\n\n   /var/lib/jenkins/workspace/binutils-gdb/build/x86_64-1-gnu/gdb/testsuite/outputs/gdb.base/fileio\n\nThis commit fixes this by defining the OUTDIR as string literal in first\nplace (similarly to how it was done prior commit cc91060) and updating\nquote_for_host to handle strings that themselves contains quote (\").\n\nTested on x86_64-linux by running all tests using quote_for_host with\nboth target board unix and host/target board local-remote-host-native.\n\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0ef85a26bee5bf5f651da62663dd659a22e674be",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/fileio.c",
      "new_id": "7007e6879ef383c5055a637954ec74b2cb71dc88",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/fileio.c"
    },
    {
      "type": "modify",
      "old_id": "2ecf50c3b7e4e8f9ef4f84135abeca86f09862e3",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/fileio.exp",
      "new_id": "d33c8224a10f1d4c5633da47496758b885971cb5",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/fileio.exp"
    },
    {
      "type": "modify",
      "old_id": "68fd2b55ee73c13d3dafaeec80d5889b2a797157",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/lib/gdb.exp",
      "new_id": "7ac26f417ba80a5137a3369a16c6f69a261c650d",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/lib/gdb.exp"
    }
  ]
}
