#!/usr/bin/python
#
# Find when GDB threading support was fixed, then broken,
# then fixed again, as discussed in PR 47430.
#

from bracket import *

import tests.pr47430

op = tests.pr47430.op()

#find_fix(
#    ts_adjust(rcs2ts("2013.01.10.20.15.00")),
#    ts_adjust(rcs2ts("2013.09.13.17.27.28")),
#    op, confirm = True)

#find_failure(
#    ts_adjust(rcs2ts("2013.10.03.13.40.26")),
#    ts_adjust(rcs2ts("2013.10.04.15.24.44")),
#    op, confirm = True)

#find_fix(
#    # On 2 Feb 2014 12:54:01 +0200, I said it is broken
#    ts_adjust(rcs2ts("2014.02.02.10.54.01")),
#    # On 2 Feb 2014 17:01:26 -0500, christos said it is fixed
#    ts_adjust(rcs2ts("2014.02.02.22.01.26")),
#    op, confirm = True)

#find_failure(
#    ts_adjust(rcs2ts("2014.02.02.22.01.26")),
#    ts_adjust(rcs2ts("2014.07.15.03.40.06")),
#    op, confirm = True)

find_fix(
    ts_adjust(rcs2ts("2014.07.15.03.40.06")),
    ts_adjust(rcs2ts("2014.07.16.07.41.43")),
    op, confirm = True)
