)]}'
{
  "commit": "fa9ce2c143ce7ee6bc4f22a0577fe5c0858beddd",
  "tree": "9fbe732c77013df72d0fdc67a47490a7a828d500",
  "parents": [
    "f9edf608302736ec68bc80d6b6bc7d0f54171554"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Sat Oct 09 18:53:12 2021 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Sat Oct 09 18:53:12 2021 +0200"
  },
  "message": "[gdb/testsuite] Add check-readmore\n\nConsider the gdb output:\n...\n27        return SYSCALL_CANCEL (nanosleep, requested_time, remaining);^M\n(gdb) ^M\nThread 2 \"run-attach-whil\" stopped.^M\n...\n\nWhen trying to match the gdb prompt using gdb_test which uses \u0027$gdb_prompt $\u0027,\nit may pass or fail.\n\nThis sort of thing needs to be fixed (see commit b0e2f96b56b), but there\u0027s\ncurrently no way to reliably find this type of FAILs.\n\nWe have check-read1, but that one actually make the test pass reliably.\n\nWe need something like the opposite of check-read1: something that makes\nexpect read a bit slower, or more exhaustively.\n\nAdd a new test target check-readmore that implements this.\n\nThere are two methods of implementing this in read1.c:\n- the first method waits a bit before doing a read\n- the second method does a read and then decides whether to\n  return or to wait a bit and do another read, and so on.\n\nThe second method is potentially faster, has less risc of timeout and could\npotentially detect more problems.  The first method has a simpler\nimplementation.\n\nThe second method is enabled by default.  The default waiting period is 10\nmiliseconds.\n\nThe first method can be enabled using:\n...\n$ export READMORE_METHOD\u003d1\n...\nand the waiting period can be specified in miliseconds using:\n...\n$ export READMORE_SLEEP\u003d9\n...\n\nAlso a log file can be specified using:\n...\n$ export READMORE_LOG\u003d$(pwd -P)/LOG\n...\n\nTested on x86_64-linux.\n\nTesting with check-readmore showed these regressions:\n...\nFAIL: gdb.base/bp-cmds-continue-ctrl-c.exp: run: stop with control-c (continue)\nFAIL: gdb.base/bp-cmds-continue-ctrl-c.exp: attach: stop with control-c (continue)\n...\n\nI have not been able to find a problem in the test-case, and I think it\u0027s the\nnature of both the test-case and readmore that makes it run longer.  Make\nthese pass by increasing the alarm timeout from 60 to 120 seconds.\n\nBug: https://sourceware.org/bugzilla/show_bug.cgi?id\u003d27957\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5a3bb9522792ef44cbb1042d9b9483d3cf503faf",
      "old_mode": 33188,
      "old_path": "gdb/Makefile.in",
      "new_id": "4201f65e68dd3559ff4818263bb9ff3accfff04c",
      "new_mode": 33188,
      "new_path": "gdb/Makefile.in"
    },
    {
      "type": "modify",
      "old_id": "20cb3dae2ed14d7f91ce999b0521113dea711354",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/Makefile.in",
      "new_id": "6b4c7588cfa76e066c0f59da24514cc393a5c0e7",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/Makefile.in"
    },
    {
      "type": "modify",
      "old_id": "862f423a9888ab446aa977f79d0da48e84d6ff7c",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/README",
      "new_id": "7552774c78badc25f6b282feefe7c887e5ba5d49",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/README"
    },
    {
      "type": "modify",
      "old_id": "968c879dd094154d71e8f3921dee7ff6e9acc8c4",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/bp-cmds-continue-ctrl-c.c",
      "new_id": "fb76cfb39734f05925fcdaf7cc22bb6be7a370d9",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/bp-cmds-continue-ctrl-c.c"
    },
    {
      "type": "modify",
      "old_id": "7dabdd4ca0c7a1114c05467810c3de0c5f3c7516",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/lib/read1.c",
      "new_id": "4e8aac6566f667913168f8f93bf0ec55b9db8728",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/lib/read1.c"
    }
  ]
}
